Fixed patch create_warehouse_nestedset (#9656)

This commit is contained in:
rohitwaghchaure 2017-07-06 13:03:11 +05:30 committed by Makarand Bauskar
parent 02c8607d04
commit 5d5a81f375

View File

@ -73,7 +73,7 @@ def validate_parent_account_for_warehouse(company=None):
if not company:
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
where account_type='Stock' and company=%s and is_group=1
and (warehouse is null or warehouse = '')""", company.name)