brotherton-erpnext/patches/november_2012/production_order_patch.py
2012-11-30 14:37:17 +05:30

8 lines
284 B
Python

def execute():
import webnotes
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)""")