From 5d5a81f3759f85c2372b962b712cdf8bbeea35f5 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 6 Jul 2017 13:03:11 +0530 Subject: [PATCH] Fixed patch create_warehouse_nestedset (#9656) --- erpnext/patches/v7_0/create_warehouse_nestedset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v7_0/create_warehouse_nestedset.py b/erpnext/patches/v7_0/create_warehouse_nestedset.py index 06766b9f69..dbf1241ca8 100644 --- a/erpnext/patches/v7_0/create_warehouse_nestedset.py +++ b/erpnext/patches/v7_0/create_warehouse_nestedset.py @@ -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)