Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <data>
- <!--
- Done by RHT on the 17/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/5Zqb6sVj
- -->
- <xpath position="replace" expr="//td[@name='td_price_unit']">
- <td name="td_price_unit" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
- <span t-if="line.price_unit != 0" t-field="line.price_unit">9.00</span>
- <span t-else="">Compris</span>
- </td>
- </xpath>
- <xpath position="replace" expr="//td[@name='td_subtotal']">
- <td name="td_subtotal" class="text-end o_price_total">
- <span t-if="line.price_unit != 0" t-field="line.price_subtotal">27.00</span>
- <span t-else="">Compris</span>
- </td>
- </xpath>
- </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement