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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
276 B
Python
Raw Normal View History

from __future__ import unicode_literals
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()