Hello community. My problem is this: on customer invoice lines, a discount per line is added to each product, the discount is displayed as a percentage, but I need that discount to be displayed as a monetary amount.
Using Studio in Odoo V16 On Cloud, I create a new field to store the discount and generate a calculated field with a multiplication of the quantity (of the product) times the unit price times the discount (percentage), but the view does not show any data, the operation is not saved.
So, is there a way to perform this calculation or display the discount in monetary amount using Studio or any other configuration? If so, any idea how I can do it? I appreciate any support.
I attach code inside the model in Studio and show image of the view:
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
Hi Angélica, your question doesn't specify the version or the hosting type, in any case OCA has the module for this: https://odoo-community.org/shop/sale-discount-display-amount-4135#attr=19887
Thanks for your answer 🙂. I am using Odoo V16 on cloud.
In that case my answer can be disconsidered. To improve the forum posts quality, it's nice to add the version and the hosting, you can for example add the Tag "v16saas" to your post.
I really appreciate the recommendation. Thanks for your time.
Hello angelica,
check that your computed field is not stored. If it is stored, the value will be recompute when the value of one of the dependant field changes.
Denis
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
feb 24
|
7391 | ||
|
1
ene 24
|
1492 | ||
Error on view for an Odoo studio app
Resuelto
|
|
1
ago 23
|
1728 | |
|
3
feb 24
|
2801 | ||
|
2
sept 24
|
2403 |