Merge pull request #2409 from ankitjavalkarwork/fixbomerror

Fix Error message, add account_type to 'inventories' in Chart Of Acc.
This commit is contained in:
Nabin Hait 2014-11-14 18:02:44 +05:30
commit 69ab2ffb5c
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@
"Deposit Account": {}
},
"Inventories": {
"Inventories": {}
"Inventories": {},
"account_type": "Warehouse"
},
"Other Current Assets": {
"Prepaid Insurance": {}

View File

@ -359,7 +359,7 @@ class BOM(Document):
and docstatus = 1 and is_active = 1)""", self.name)
if act_pbom and act_pbom[0][0]:
frappe.throw(_("Cannot deactive or cancle BOM as it is linked with other BOMs"))
frappe.throw(_("Cannot deactivate or cancel BOM as it is linked with other BOMs"))
def get_bom_items_as_dict(bom, qty=1, fetch_exploded=1):
item_dict = {}