brotherton-erpnext/erpnext/patches/jan_mar_2012/subcon_default_val.py

8 lines
201 B
Python
Raw Normal View History

2012-02-14 10:38:22 +00:00
def execute():
import webnotes
webnotes.conn.sql("""
update `tabDocField` set `default` = 'No'
where parent in ('Purchase Order', 'Purchase Receipt')
and fieldname = 'is_subcontracted'
""")