brotherton-erpnext/erpnext/patches/v4_0/new_address_template.py

11 lines
234 B
Python
Raw Normal View History

2014-06-05 09:14:16 +00:00
import frappe
def execute():
2014-06-05 12:04:59 +00:00
frappe.reload_doc("utilities", "doctype", "address_template")
2014-06-05 09:14:16 +00:00
d = frappe.new_doc("Address Template")
d.update({"country":frappe.db.get_default("country")})
try:
d.insert()
except Exception:
pass