Fixed patch create_warehouse_nestedset (#9833)

This commit is contained in:
rohitwaghchaure 2017-07-13 12:17:12 +05:30 committed by Makarand Bauskar
parent 96488b0f34
commit c3153655eb

View File

@ -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