[imp] add method to get exchange rates from the client

bzr revid: rlo@openerp.com-20120329102446-wzg853rgzd11f4yg
This commit is contained in:
Roberto López López (OpenERP)
2012-03-29 12:24:46 +02:00
parent c67aea4ed7
commit d9c673d586
+6 -1
View File
@@ -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: