Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <data>
- <!--
- Done by RHT on the 19/03/2025
- Need : hide the price when price is 0 - set as included
- Task : https://www.odoo.com/odoo/project.task/4648516
- Pastebin : https://pastebin.com/yBXGHrES
- -->
- <xpath expr="//td[3]" position="replace">
- <td t-attf-class="text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}">
- <div t-if="line.discount >= 0 and line.price_unit >0" t-field="line.price_unit" t-att-style="line.discount and 'text-decoration: line-through' or None" t-att-class="(line.discount and 'text-danger' or '') + ' text-end'"/>
- <div t-if="line.discount and line.price_unit != 0">
- <t t-out="(1-line.discount / 100.0) * line.price_unit" t-options="{"widget": "float", "decimal_precision": "Product Price"}"/>
- </div>
- <div t-if="line.price_unit == 0">Compris</div>
- </td>
- </xpath>
- <xpath expr="//td[@id='subtotal']" position="replace">
- <td t-if="not line.is_downpayment" class="text-end" id="subtotal">
- <span t-if="line.price_unit!= 0" class="oe_order_line_price_subtotal" t-field="line.price_subtotal"/>
- <span t-else="">Compris</span>
- </td>
- </xpath>
- </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement