brotherton-erpnext/erpnext/patches/v5_0/set_footer_address.py

9 lines
236 B
Python
Raw Normal View History

2015-05-25 05:21:01 +00:00
import frappe
def execute():
2015-05-26 05:17:52 +00:00
frappe.reload_doctype("System Settings")
2015-05-25 05:21:01 +00:00
ss = frappe.get_doc("System Settings", "System Settings")
ss.email_footer_address = frappe.db.get_default("company")
ss.flags.ignore_mandatory = True
2015-05-25 05:21:01 +00:00
ss.save()