Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [QW][4643523]invoice_document_info_if_price_above_zero
- <data>
- <!--
- Done by RHT on the 1/03/2025
- Need : Quotations are displaying all the product for correct inventory. Some product should have nor information shown if unit_price = 0. Hide the Unit price (price_unit), Tax (taxes) and Subtotal (price_subtotal) for line where unit price = 0
- Task : https://www.odoo.com/odoo/project/5686/tasks/4643523
- Pastebin : https://pastebin.com/j3whvGXK
- -->
- <xpath expr="//td[@name='td_price_unit']" position="attributes">
- <attribute name="t-if">line.price_unit > 0</attribute>
- </xpath>
- <xpath expr="//td[@name='td_taxes']" position="attributes">
- <attribute name="t-if">line.price_unit > 0</attribute>
- </xpath>
- <xpath expr="//td[@name='td_subtotal']" position="attributes">
- <attribute name="t-if">not line.is_downpayment and line.price_unit > 0</attribute>
- </xpath>"
- </data>
- [QW][4643523]sale_document_info_if_price_above_zero
- <data>
- <!--
- Done by RHT on the 1/03/2025
- Need : Quotations are displaying all the product for correct inventory. Some product should have nor information shown if unit_price = 0. Hide the Unit price (price_unit), Tax (taxes) and Subtotal (price_subtotal) for line where unit price = 0
- Task : https://www.odoo.com/odoo/project/5686/tasks/4643523
- Pastebin : https://pastebin.com/j3whvGXK
- -->
- <xpath expr="//td[@name='td_priceunit']" position="attributes">
- <attribute name="t-if">line.price_unit > 0</attribute>
- </xpath>
- <xpath expr="//td[@name='td_taxes']" position="attributes">
- <attribute name="t-if">line.price_unit > 0</attribute>
- </xpath>
- <xpath expr="//td[@name='td_subtotal']" position="attributes">
- <attribute name="t-if">not line.is_downpayment and line.price_unit > 0</attribute>
- </xpath>"
- </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement