Warehouse patch fix

This commit is contained in:
Nabin Hait 2016-07-04 18:17:45 +05:30
parent 4419450203
commit 281b07cdb6

View File

@ -48,7 +48,7 @@ def check_is_warehouse_associated_with_company():
def make_warehouse_nestedset(company=None): def make_warehouse_nestedset(company=None):
validate_parent_account_for_warehouse(company) validate_parent_account_for_warehouse(company)
stock_account_group = get_stock_account_group(company.name) 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 return
if company: if company: