[IMP] base, res_currency: added an indirection on _current_rate() function to allow...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 7 May 2013 12:01:49 +0000 (14:01 +0200)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 7 May 2013 12:01:49 +0000 (14:01 +0200)
bzr revid: qdp-launchpad@openerp.com-20130507120149-p2m4ug20nfny234v

openerp/addons/base/res/res_currency.py

index 98dd6ed..70bc829 100644 (file)
@@ -30,7 +30,11 @@ from openerp.tools.translate import _
 CURRENCY_DISPLAY_PATTERN = re.compile(r'(\w+)\s*(?:\((.*)\))?')
 
 class res_currency(osv.osv):
+
     def _current_rate(self, cr, uid, ids, name, arg, context=None):
+        return self._get_current_rate(cr, uid, ids, name, arg, context=context)
+
+    def _get_current_rate(self, cr, uid, ids, name, arg, context=None):
         if context is None:
             context = {}
         res = {}