brotherton-erpnext/erpnext/patches/jan_mar_2012/subcon_default_val.py
2012-02-14 16:08:22 +05:30

8 lines
201 B
Python

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