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