brotherton-erpnext/patches/may_2012/same_purchase_rate_patch.py
2012-09-24 19:13:42 +05:30

9 lines
209 B
Python

from __future__ import unicode_literals
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()