bom exploded items grouped by items
This commit is contained in:
parent
0323e0048d
commit
aec5553814
@ -21,6 +21,9 @@ def execute():
|
||||
updated_bom = []
|
||||
for bom in webnotes.conn.sql("select name from tabBOM where docstatus < 2"):
|
||||
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.conn.commit()
|
||||
try:
|
||||
bom_obj = webnotes.get_obj("BOM", bom[0], with_children=1)
|
||||
updated_bom = bom_obj.update_cost_and_exploded_items(updated_bom)
|
||||
webnotes.conn.commit()
|
||||
except:
|
||||
pass
|
Loading…
x
Reference in New Issue
Block a user