2012-11-30 09:07:17 +00:00
|
|
|
def execute():
|
|
|
|
import webnotes
|
2012-11-30 09:45:16 +00:00
|
|
|
|
|
|
|
webnotes.reload_doc("production", "doctype", "production_order")
|
|
|
|
webnotes.reload_doc("stock", "doctype", "stock_entry")
|
|
|
|
|
2012-11-30 09:07:17 +00:00
|
|
|
webnotes.conn.sql("""update `tabProduction Order`
|
|
|
|
set use_multi_level_bom = if(consider_sa_items='Yes', 0, 1)""")
|
|
|
|
|
|
|
|
webnotes.conn.sql("""update `tabStock Entry`
|
|
|
|
set use_multi_level_bom = if(consider_sa_items_as_raw_materials='Yes', 0, 1)""")
|
|
|
|
|