Patch for production fieldlevel changes
This commit is contained in:
parent
faf251a53e
commit
9d4e5569c8
8
patches/november_2012/production_order_patch.py
Normal file
8
patches/november_2012/production_order_patch.py
Normal file
@ -0,0 +1,8 @@
|
||||
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)""")
|
||||
|
@ -699,4 +699,8 @@ patch_list = [
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'add_theme_to_profile',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'production_order_patch',
|
||||
},
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user