bom exploded items grouped by items

This commit is contained in:
Nabin Hait 2013-06-04 17:07:57 +05:30
parent ad600cce22
commit 89ab4719ff

View File

@ -20,9 +20,6 @@ import webnotes
def execute():
updated_bom = []
for bom in webnotes.conn.sql("select name from tabBOM where docstatus < 2"):
webnotes.errprint(bom[0])
if bom[0] not in updated_bom:
bom_obj = webnotes.get_obj("BOM", bom[0], with_children=1)
updated_bom = bom_obj.update_cost_and_exploded_items(updated_bom)
webnotes.errprint(updated_bom)
updated_bom = bom_obj.update_cost_and_exploded_items(updated_bom)