brotherton-erpnext/erpnext/patches/v4_0/new_address_template.py
2014-06-05 16:16:13 +05:30

10 lines
171 B
Python

import frappe
def execute():
d = frappe.new_doc("Address Template")
d.update({"country":frappe.db.get_default("country")})
try:
d.insert()
except Exception:
pass