[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:
parent
01e2e03214
commit
4d519be0b4
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue