bom cleanup

This commit is contained in:
Nabin Hait
2012-12-14 14:25:51 +05:30
parent fce76cd5b2
commit 3adaf607f0
14 changed files with 170 additions and 153 deletions

View File

@@ -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