Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In Odoo when you have an xpath you can add "attrs" to a field invisible, when a condition is met. This works fine.
I have a field DISCOUNT that i want to display on INVOICE/QUOTATION report only if one of the products hold a DISCOUNT value more than 0.0 (i.e - that product has a discount given to it
<td style="border: 0.5px solid black;background-color:#E6E6E6;">
<span t-field="l.total_discount" />
I want to add:
But i dont know if this is the correct code above.
Normally, this code should hide all tables of discount if they all equal zero (there's no use of placing a discount block if discount is zero)
Please let me know if am somewhat unclear, in any aspect.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/30/16, 10:42 AM|
|Seen: 1330 times|
|Last updated: 9/24/16, 3:08 PM|