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_default')
|
||||||
frappe.reload_doc('stock', 'doctype', 'item')
|
frappe.reload_doc('stock', 'doctype', 'item')
|
||||||
|
|
||||||
|
if frappe.db.a_row_exists('Item Default'): return
|
||||||
|
|
||||||
companies = frappe.get_all("Company")
|
companies = frappe.get_all("Company")
|
||||||
if len(companies) == 1:
|
if len(companies) == 1:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user