mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
bom cleanup
This commit is contained in:
@@ -5,7 +5,7 @@ def execute():
|
||||
where docstatus = 2""")
|
||||
|
||||
for bom in cancelled_boms:
|
||||
webnotes.conn.sql("""update `tabBOM` set is_default=0, is_active='No'
|
||||
webnotes.conn.sql("""update `tabBOM` set is_default=0, is_active=0
|
||||
where name=%s""", (bom[0],))
|
||||
|
||||
webnotes.conn.sql("""update `tabItem` set default_bom=null
|
||||
|
||||
Reference in New Issue
Block a user