Merge pull request #1898 from rmehta/pdf-etc
sales order status bugfix, add leading / in website_image and removed se...
This commit is contained in:
commit
2cf256c6d0
@ -18,8 +18,7 @@ def map_outgoing_email_settings(email_settings):
|
||||
outgoing_email_settings = frappe.get_doc("Outgoing Email Settings")
|
||||
for fieldname in (("outgoing_mail_server", "mail_server"),
|
||||
"use_ssl", "mail_port", "mail_login", "mail_password",
|
||||
"always_use_login_id_as_sender",
|
||||
"auto_email_id", "send_print_in_body_and_attachment"):
|
||||
"always_use_login_id_as_sender", "auto_email_id"):
|
||||
|
||||
if isinstance(fieldname, tuple):
|
||||
from_fieldname, to_fieldname = fieldname
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user