brotherton-erpnext/patches/july_2013/p01_same_sales_rate_patch.py
2013-07-18 12:28:09 +05:30

7 lines
180 B
Python

def execute():
import webnotes
webnotes.reload_doc("setup", "doctype", "global_defaults")
gd = webnotes.bean('Global Defaults')
gd.doc.maintain_same_sales_rate = 1
gd.save()