getting problem in converting from one currency to another currency
I am trying to convert a float amount from one currency to another currency (odoo version 8), amount_currency is a float field. for example amount_currency has a usd currency then I want to convert it to company currency.
below is my code, tell me where I am wrong.
for move_line in self.amount_currency:
res = self.env['res.currency'].compute(move_line.amount_currency,