brotherton-erpnext/erpnext/patches/v5_0/set_footer_address.py
2015-05-27 13:02:59 +05:30

9 lines
236 B
Python

import frappe
def execute():
frappe.reload_doctype("System Settings")
ss = frappe.get_doc("System Settings", "System Settings")
ss.email_footer_address = frappe.db.get_default("company")
ss.flags.ignore_mandatory = True
ss.save()