From c3153655ebf383da57529f3253ac48442523ceff Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 13 Jul 2017 12:17:12 +0530 Subject: [PATCH] Fixed patch create_warehouse_nestedset (#9833) --- 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 dbf1241ca8..ca47ac5bf5 100644 --- a/erpnext/patches/v7_0/create_warehouse_nestedset.py +++ b/erpnext/patches/v7_0/create_warehouse_nestedset.py @@ -51,7 +51,7 @@ def check_is_warehouse_associated_with_company(): def make_warehouse_nestedset(company=None): validate_parent_account_for_warehouse(company) stock_account_group = get_stock_account_group(company.name) - enable_perpetual_inventory = cint(erpnext.is_perpetual_inventory_enabled(company)) or 0 + enable_perpetual_inventory = cint(erpnext.is_perpetual_inventory_enabled(company.name)) or 0 if not stock_account_group and enable_perpetual_inventory: return