brotherton-erpnext/patches/july_2013/p01_same_sales_rate_patch.py

7 lines
180 B
Python
Raw Normal View History

def execute():
import webnotes
webnotes.reload_doc("setup", "doctype", "global_defaults")
2013-07-18 06:58:09 +00:00
gd = webnotes.bean('Global Defaults')
gd.doc.maintain_same_sales_rate = 1
2013-07-18 06:58:09 +00:00
gd.save()