mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
Fixed add address template
This commit is contained in:
@@ -5,7 +5,8 @@ def execute():
|
|||||||
if not frappe.db.sql("select name from `tabAddress Template`"):
|
if not frappe.db.sql("select name from `tabAddress Template`"):
|
||||||
try:
|
try:
|
||||||
d = frappe.new_doc("Address Template")
|
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()
|
d.insert()
|
||||||
except:
|
except:
|
||||||
print frappe.get_traceback()
|
print frappe.get_traceback()
|
||||||
|
|||||||
Reference in New Issue
Block a user