mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
def val of is_subcontracted is NO
This commit is contained in:
7
erpnext/patches/jan_mar_2012/subcon_default_val.py
Normal file
7
erpnext/patches/jan_mar_2012/subcon_default_val.py
Normal 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'
|
||||||
|
""")
|
||||||
@@ -74,5 +74,10 @@ patch_list = [
|
|||||||
'patch_module': 'patches.jan_mar_2012',
|
'patch_module': 'patches.jan_mar_2012',
|
||||||
'patch_file': 'account_type_patch',
|
'patch_file': 'account_type_patch',
|
||||||
'description': 'mentioed account type for some tax accounts'
|
'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'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user