Skip to Content
Menu

Report monetary helpers

by
Odoo
v 16.0 Third Party 24
Download for v 16.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 98
Technical Name report_monetary_helpers
LicenseLGPL-3
Websitehttp://rydlab.ru
Versions 15.0 16.0 17.0
You bought this module and need support? Click here!

Adds in report's rendering context 2 methods for printing amount in words. They are accessible from template like this:

number2words(amount_variable, lang="en", to="cardinal") currency2words(amount_variable, lang="en", to="cardinal", currency="RUB")

"amount_variable" should be of "int", "float" or validate "string" type.

Variants for "to" attribute:
'cardinal', 'ordinal', 'ordinal_num', 'year', 'currency'. "cardinal" is default value.
"lang" attribute. 25 languages are supported:
'ar', 'en', 'en_IN', 'fr', 'fr_CH', 'fr_DZ', 'de', 'es', 'es_CO', 'es_VE', 'id', 'lt', 'lv', 'pl', 'ru', 'sl', 'no', 'dk', 'pt_BR', 'he', 'it', 'vi_VN', 'tr', 'nl', 'uk'. "ru" is default value.
"currency" attribute: for russian language there are "RUB" and "EUR" currencies.
"RUB" is default value. Full info about currencies features see in "num2words" python module.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.