brotherton-erpnext/erpnext/patches/may_2012/same_purchase_rate_patch.py

8 lines
169 B
Python

def execute():
import webnotes
from webnotes.model.code import get_obj
gd = get_obj('Global Defaults')
gd.doc.maintain_same_rate = 1
gd.doc.save()
gd.on_update()