I want to convert amount_total in invoice to words in Indian rupees. I tried like this,
In .py file,
class account_invoice(models.Model):
_inherit = "account.invoice"
@api.multi
def amount_to_text(self, amount, currency='rupee'):
return amount_to_text(amount, currency)
In report,
<strong><td>Total in words:</td></strong>
<span t-esc="o.amount_to_text(o.amount_total, o.currency_id)"/>
But still it is coming in euros