[accounts] [feature] optional checkbox for same rate validation in sales cycle

This commit is contained in:
Nabin Hait
2013-07-16 18:34:35 +05:30
parent aea0af02aa
commit 6a3b951352
5 changed files with 32 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
def execute():
import webnotes
webnotes.reload_doc("setup", "doctype", "global_defaults")
from webnotes.model.code import get_obj
gd = get_obj('Global Defaults')
gd.doc.maintain_same_sales_rate = 1
gd.doc.save()
gd.on_update()