def val of is_subcontracted is NO

This commit is contained in:
Nabin Hait 2012-02-14 16:08:22 +05:30
parent 3d794a682d
commit 75ef7c7a89
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
def execute():
import webnotes
webnotes.conn.sql("""
update `tabDocField` set `default` = 'No'
where parent in ('Purchase Order', 'Purchase Receipt')
and fieldname = 'is_subcontracted'
""")

View File

@ -74,5 +74,10 @@ patch_list = [
'patch_module': 'patches.jan_mar_2012',
'patch_file': 'account_type_patch',
'description': 'mentioed account type for some tax accounts'
},
{
'patch_module': 'patches.jan_mar_2012',
'patch_file': 'subcon_default_val',
'description': 'Default value of is_subcontracted in PO, PR is No'
}
]