diff --git a/erpnext/patches.txt b/erpnext/patches.txt index d94dd53097..a326eca2e1 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -64,3 +64,4 @@ execute:frappe.db.sql("update `tabItem` set end_of_life=null where end_of_life=' erpnext.patches.v4_0.update_users_report_view_settings erpnext.patches.v4_0.set_pricing_rule_for_buying_or_selling erpnext.patches.v4_0.set_naming_series_property_setter +erpnext.patches.v4_1.set_outgoing_email_footer diff --git a/erpnext/patches/v4_1/__init__.py b/erpnext/patches/v4_1/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/erpnext/patches/v4_1/set_outgoing_email_footer.py b/erpnext/patches/v4_1/set_outgoing_email_footer.py new file mode 100644 index 0000000000..d38f2c247f --- /dev/null +++ b/erpnext/patches/v4_1/set_outgoing_email_footer.py @@ -0,0 +1,11 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +from __future__ import unicode_literals +import frappe +from erpnext.setup.install import default_mail_footer + +def execute(): + mail_footer = frappe.db.get_default('mail_footer') or '' + mail_footer += default_mail_footer + frappe.db.set_value("Outgoing Email Settings", "Outgoing Email Settings", "footer", mail_footer)