I have a created module called 'custom_report_module', where I make a personalized invoice ... The invoice works well but I want to add the total amount in letters .. for example .. if the purchase reached 500,000 that I printed in letters "are: five hundred thousand guaranies "or" are: five hundred thousand "
class account_invoice(models.Model):
_inherit = "account.invoice"
@api.multi
def amount_to_text(self, amount, currency='rupee'):
return amount_to_text(amount, currency)
my xml
<span t-esc="l.amount_to_text(l.price_unit, l.price_unit)"/>