Patch for production fieldlevel changes

This commit is contained in:
Nabin Hait 2012-11-30 14:37:17 +05:30
parent faf251a53e
commit 9d4e5569c8
2 changed files with 12 additions and 0 deletions

View 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)""")

View File

@ -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',
},
]