[enhance] rename warehouse account type to stock

This commit is contained in:
Saurabh
2016-06-24 13:11:29 +05:30
parent 2ee4d79609
commit 7fecb50360
12 changed files with 39 additions and 25 deletions

View File

@@ -321,7 +321,7 @@ def get_warehouse_account():
warehouse_account = frappe._dict()
for d in frappe.db.sql("""select warehouse, name, account_currency from tabAccount
where account_type = 'Warehouse' and (warehouse is not null and warehouse != ''
where account_type = 'Stock' and (warehouse is not null and warehouse != ''
and is_group != 1)""", as_dict=1):
warehouse_account.setdefault(d.warehouse, d)
return warehouse_account