Fixed patch create_warehouse_nestedset (#9656)
This commit is contained in:
parent
02c8607d04
commit
5d5a81f375
@ -73,7 +73,7 @@ def validate_parent_account_for_warehouse(company=None):
|
|||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
|
||||||
if cint(erpnext.is_perpetual_inventory_enabled(company)):
|
if cint(erpnext.is_perpetual_inventory_enabled(company.name)):
|
||||||
parent_account = frappe.db.sql("""select name from tabAccount
|
parent_account = frappe.db.sql("""select name from tabAccount
|
||||||
where account_type='Stock' and company=%s and is_group=1
|
where account_type='Stock' and company=%s and is_group=1
|
||||||
and (warehouse is null or warehouse = '')""", company.name)
|
and (warehouse is null or warehouse = '')""", company.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user