mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 01:07:19 +00:00
Return if Item Defaults exist (#14834)
This commit is contained in:
committed by
Rushabh Mehta
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:
|
||||
|
||||
Reference in New Issue
Block a user