diff --git a/erpnext/patches/may_2012/same_purchase_rate_patch.py b/erpnext/patches/may_2012/same_purchase_rate_patch.py index 44c0b3f6e82..6cca178c106 100644 --- a/erpnext/patches/may_2012/same_purchase_rate_patch.py +++ b/erpnext/patches/may_2012/same_purchase_rate_patch.py @@ -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()