[fix][patch] bom exploded items

This commit is contained in:
Nabin Hait 2013-06-25 15:17:38 +05:30
parent cca41a172c
commit 50899d2bd4

View File

@ -23,7 +23,7 @@ def execute():
if bom[0] not in updated_bom: if bom[0] not in updated_bom:
try: try:
bom_obj = webnotes.get_obj("BOM", bom[0], with_children=1) bom_obj = webnotes.get_obj("BOM", bom[0], with_children=1)
updated_bom = bom_obj.update_cost_and_exploded_items(updated_bom) updated_bom += bom_obj.update_cost_and_exploded_items(bom[0])
webnotes.conn.commit() webnotes.conn.commit()
except: except:
pass pass