ITA - Localizzazione valute per amount_to_text
l10n_it_amount_to_text · OCA/l10n-italy
-
Security25/25No findings
-
Activity0/25Only bot commits
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Description
Italiano
Il core di Odoo fornisce amount_to_text, il quale converte importi
numerici in testo ottenendo la lingua dal contesto fornito o dalle
impostazioni utente/partner, con alcune limitazioni.
Esempio: 45,75 €
- Lingua utente "Inglese" → Forty-Five Euros and Seventy-Five Cents
- Lingua utente "Italiano" → Quarantacinque Euros e Settantacinque Cents
L'unità/sottounità di valuta non viene tradotta e non viene gestita la forma singolare. Inoltre tutte le parole possiedono l'iniziale maiuscola, forma non corretta nella lingua italiana.
Questo modulo fornisce una base per tradurre le unità/sottounità di valuta, adattando le parole alle regole della lingua italiana.
Vengono inoltre gestite le eccezioni per la forma singolare delle valute EUR, USD, GBP e CNY.
Esempio: 1,01 €
- La parte intera diventa "un euro", non "uno euro"
- La parte decimale diventa "un centesimo", non "uno centesimi"
English
Odoo core provides amount_to_text, which converts numerical amounts to
text getting language from given context or user/partner setting, with
some limitations.
Example: 45,75 €
- User Language 'English' -> Forty-Five Euros and Seventy-Five Cents
- User Language 'Italian' -> Quaranta Euros e Settantacinque Cents
Currency unit/subunit is not translated and singular form is not handled. Moreover all words are capitalized, which is incorrect in italian language.
This module provides a base for translating currency unit/subunit adapting words to italian language rules.
Singular form expections for EUR, USD, GBP and CNY currencies are handled as well.
Example: 1,01 €
- Integer part becomes "un euro", not "uno euro"
- Decimal part becomes "un centesimo", not "uno centesimi"
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- num2words>=0.5.12
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (1)-
amount_to_text(self, amount)
Loading…
Loading…
Loading…
Loading…