Fixed add address template
This commit is contained in:
parent
edb9efd9a6
commit
be3f914acd
@ -5,7 +5,8 @@ def execute():
|
||||
if not frappe.db.sql("select name from `tabAddress Template`"):
|
||||
try:
|
||||
d = frappe.new_doc("Address Template")
|
||||
d.update({"country":frappe.db.get_default("country")})
|
||||
d.update({"country":frappe.db.get_default("country") or
|
||||
frappe.db.get_value("Global Defaults", "Global Defaults", "country")})
|
||||
d.insert()
|
||||
except:
|
||||
print frappe.get_traceback()
|
||||
|
Loading…
x
Reference in New Issue
Block a user