Reload Shopping Cart Settings in create price list patch
This commit is contained in:
parent
3474c273a5
commit
e35841a2ea
@ -11,6 +11,9 @@ def execute():
|
||||
if not frappe.db.sql("""select name from tabCompany limit 1"""):
|
||||
return
|
||||
|
||||
if "shopping_cart" in frappe.get_installed_apps():
|
||||
frappe.reload_doc("shopping_cart", "doctype", "shopping_cart_settings")
|
||||
|
||||
if not frappe.db.sql("select name from `tabPrice List` where buying=1"):
|
||||
create_price_list(_("Standard Buying"), buying=1)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user