2013-11-20 07:29:58 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-11-30 09:07:17 +00:00
|
|
|
def execute():
|
|
|
|
import webnotes
|
2012-11-30 09:45:16 +00:00
|
|
|
|
2012-12-20 11:36:44 +00:00
|
|
|
webnotes.reload_doc("manufacturing", "doctype", "production_order")
|
2012-11-30 09:45:16 +00:00
|
|
|
webnotes.reload_doc("stock", "doctype", "stock_entry")
|
|
|
|
|
2012-11-30 09:07:17 +00:00
|
|
|
webnotes.conn.sql("""update `tabStock Entry`
|
|
|
|
set use_multi_level_bom = if(consider_sa_items_as_raw_materials='Yes', 0, 1)""")
|
2012-12-24 13:17:18 +00:00
|
|
|
|
|
|
|
webnotes.conn.sql("""update `tabProduction Order`
|
2012-12-25 13:13:15 +00:00
|
|
|
set use_multi_level_bom = if(consider_sa_items='Yes', 0, 1)
|
2012-12-24 13:17:18 +00:00
|
|
|
where use_multi_level_bom is null""")
|