[IMP] base, res_currency: added an indirection on _current_rate() function to allow a clean overwriting

bzr revid: qdp-launchpad@openerp.com-20130507120149-p2m4ug20nfny234v
This commit is contained in:
Quentin (OpenERP) 2013-05-07 14:01:49 +02:00
parent 01e2e03214
commit 4d519be0b4
1 changed files with 4 additions and 0 deletions

View 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 = {}