Quantity: is - 2.000 units / should be - 2 Units
The quantity fields among the process is correct (showed as I want).
But in the invoice form it again shows 2.000 units.
Is there a way to modify this quantity in the invoice template?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
Hi,
Adjust Decimal Precision in the Report Template.
You can use a Python expression to format the quantity field. For instance, you can use the int() function to display the quantity without decimals.
Example: If the field is line.quantity, you can change it to int(line.quantity)
Preview the invoice to ensure the quantities are now displayed as integers (e.g., "2" instead of "2.000").
Hi,
Yes it is possible to achieve, what we need to do inherit the report template from the code side or using the studio tool, strip out the decimal part from the floating value
Thanks
If I do that, I can't save some products that have consuming 0.005 for example.
I only wanted to change that one in the invoice template.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
juil. 24
|
1428 | ||
|
1
juil. 25
|
575 | ||
|
0
nov. 24
|
1268 | ||
|
0
oct. 24
|
1531 | ||
|
1
oct. 24
|
2169 |