sales order status bugfix, add leading / in website_image and removed send_print_in_body_and_attachment

This commit is contained in:
Rushabh Mehta 2014-07-07 12:29:43 +05:30
parent 47f26b0df4
commit 58692fe4d1
4 changed files with 788 additions and 789 deletions

View File

@ -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

View File

@ -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):

View File

@ -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