[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:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user