Return if Item Defaults exist (#14834)
This commit is contained in:
parent
17705f932d
commit
c8c17ff5cf
@ -16,7 +16,9 @@ def execute():
|
||||
|
||||
frappe.reload_doc('stock', 'doctype', 'item_default')
|
||||
frappe.reload_doc('stock', 'doctype', 'item')
|
||||
|
||||
|
||||
if frappe.db.a_row_exists('Item Default'): return
|
||||
|
||||
companies = frappe.get_all("Company")
|
||||
if len(companies) == 1:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user