[imp] add method to get exchange rates from the client
bzr revid: rlo@openerp.com-20120329102446-wzg853rgzd11f4yg
This commit is contained in:
@@ -25,6 +25,11 @@ from osv import osv
|
||||
class res_currency_account(osv.osv):
|
||||
_inherit = "res.currency"
|
||||
|
||||
def get_conversion_rate(self, cr, uid, from_currency, to_currency, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
return self._get_conversion_rate(cr, uid, from_currency, to_currency, context=context)
|
||||
|
||||
def _get_conversion_rate(self, cr, uid, from_currency, to_currency, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
@@ -44,4 +49,4 @@ class res_currency_account(osv.osv):
|
||||
|
||||
res_currency_account()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
Reference in New Issue
Block a user