Fix Error message, add account_type to 'inventories' in Chart Of Acc.

This commit is contained in:
ankitjavalkarwork
2014-11-14 14:19:06 +05:30
parent a6a70a5f35
commit fff1b42f80
2 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -359,7 +359,7 @@ class BOM(Document):
and docstatus = 1 and is_active = 1)""", self.name) and docstatus = 1 and is_active = 1)""", self.name)
if act_pbom and act_pbom[0][0]: 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): def get_bom_items_as_dict(bom, qty=1, fetch_exploded=1):
item_dict = {} item_dict = {}