Maintain same rate throughout pur cycle: in global defaults, by default set true

This commit is contained in:
Nabin Hait 2012-05-22 16:23:27 +05:30
parent a21d2a9b38
commit 78b62cd865

View File

@ -1,6 +1,7 @@
def execute():
import webnotes
gd = webnotes.model.code.get_obj('Global Defaults')
from webnotes.model.code import get_obj
gd = get_obj('Global Defaults')
gd.doc.maintain_same_rate = 1
gd.doc.save()
gd.on_update()