TIP: You can type at any time to perform a new search.
ITA - Localizzazione valute per amount_to_text
l10n_it_amount_to_text · OCA/l10n-italy
- Repository
- OCA/l10n-italy · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Localization/Italy
- Folder size
- 0.04 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-italy
- Last tracking update
- 2026-08-07 08:42:51
- Authors
- Odoo Community Association (OCA), Sergio Zanchetta - Associazione PNLug APS, Ecosoft Co. Ltd
- Maintainers
- Odoo Community Association (OCA), Sergio Zanchetta - Associazione PNLug APS, Ecosoft Co. Ltd
- Committers
- Sergio Zanchetta, OCA-git-bot, oca-ci
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- num2words>=0.5.12
- System dependencies
- None
- Required by
- None
- 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"
Code Analysis ⓘ
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (0)
No new fields.
Public methods (1)-
amount_to_text(self, amount)
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 180 days ago
- Last activity
- 70 days ago
- Repository
- OCA/l10n-italy
- Pull request
- [19.0][MIG] l10n_it_amount_to_text: Migration to 19.0 (#5122)