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/pJNw1TUf
- -->
- <xpath expr="//td[@name='td_priceunit']" position="replace">
- <td name="td_priceunit" class="text-end text-nowrap">
- <span t-if="line.price_unit >0" t-field="line.price_unit">3</span>
- <span t-else="">Compris</span>
- </td>
- </xpath>
- <xpath expr="//td[@name='td_subtotal']" position="replace">
- <td t-if="not line.is_downpayment" 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