def execute():
	import webnotes
	gd = webnotes.model.code.get_obj('Global Defaults')
	gd.doc.maintain_same_rate = 1
	gd.doc.save()
	gd.on_update()
	
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()
	
Maintain same rate throughout pur cycle: in global defaults, by default set true
Maintain same rate throughout pur cycle: in global defaults, by default set true

  def execute():
  	import webnotes
+ 	from webnotes.model.code import get_obj
- 	gd = webnotes.model.code.get_obj('Global Defaults')
+ 	gd = get_obj('Global Defaults')
  	gd.doc.maintain_same_rate = 1
  	gd.doc.save()
  	gd.on_update()
  	
Maintain same rate throughout pur cycle: in global defaults, by default set true
## Code Before:
def execute():
	import webnotes
	gd = webnotes.model.code.get_obj('Global Defaults')
	gd.doc.maintain_same_rate = 1
	gd.doc.save()
	gd.on_update()
	
## Instruction:
Maintain same rate throughout pur cycle: in global defaults, by default set true
## Code After:
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()
	