brotherton-erpnext/patches/may_2012/same_purchase_rate_patch.py

9 lines
209 B
Python
Raw Normal View History

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()