From 281b07cdb6ab15068a1174255c7119258359e654 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 4 Jul 2016 18:17:45 +0530 Subject: [PATCH] Warehouse patch fix --- 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 34384efde0..af39cc89c4 100644 --- a/erpnext/patches/v7_0/create_warehouse_nestedset.py +++ b/erpnext/patches/v7_0/create_warehouse_nestedset.py @@ -48,7 +48,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) - if not stock_account_group: + if not stock_account_group and cint(frappe.defaults.get_global_default("auto_accounting_for_stock")): return if company: