Update __init__.py

This commit is contained in:
Nabin Hait
2018-08-16 13:58:44 +05:30
committed by GitHub
parent bd06a5b0ee
commit 9409eddf28

View File

@@ -45,7 +45,7 @@ def get_warehouse_account(warehouse, warehouse_account=None):
account = account[0][0] if account else None account = account[0][0] if account else None
if not account: if not account and warehouse.company:
account = get_company_default_inventory_account(warehouse.company) account = get_company_default_inventory_account(warehouse.company)
return account return account