mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 07:37:04 +00:00
sales order status bugfix, add leading / in website_image and removed send_print_in_body_and_attachment
This commit is contained in:
@@ -79,6 +79,10 @@ def get_child_groups(item_group_name):
|
||||
and show_in_website = 1""", {"lft": item_group.lft, "rgt": item_group.rgt})
|
||||
|
||||
def get_item_for_list_in_html(context):
|
||||
# add missing absolute link in files
|
||||
# user may forget it during upload
|
||||
if context.get("website_image", "").startswith("files/"):
|
||||
context["website_image"] = "/" + context["website_image"]
|
||||
return frappe.get_template("templates/includes/product_in_grid.html").render(context)
|
||||
|
||||
def get_group_item_count(item_group):
|
||||
|
||||
@@ -216,10 +216,6 @@ def set_defaults(args):
|
||||
hr_settings.emp_created_by = "Naming Series"
|
||||
hr_settings.save()
|
||||
|
||||
email_settings = frappe.get_doc("Outgoing Email Settings")
|
||||
email_settings.send_print_in_body_and_attachment = 1
|
||||
email_settings.save()
|
||||
|
||||
def create_feed_and_todo():
|
||||
"""update activty feed and create todo for creation of item, customer, vendor"""
|
||||
from erpnext.home import make_feed
|
||||
|
||||
Reference in New Issue
Block a user