Return if Item Defaults exist (#14834)

This commit is contained in:
Shreya Shah 2018-07-06 18:07:28 +05:30 committed by Rushabh Mehta
parent 17705f932d
commit c8c17ff5cf

View File

@ -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: