mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
12
patches/november_2012/production_order_patch.py
Normal file
12
patches/november_2012/production_order_patch.py
Normal file
@@ -0,0 +1,12 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
|
||||
webnotes.reload_doc("production", "doctype", "production_order")
|
||||
webnotes.reload_doc("stock", "doctype", "stock_entry")
|
||||
|
||||
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)""")
|
||||
|
||||
@@ -697,4 +697,8 @@ patch_list = [
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'leave_application_cleanup',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'production_order_patch',
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user