Advertisement
rht_odoo

[QW][4648516]report_invoice_document_price_is_zero_set_as_included

Mar 17th, 2025 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.86 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    Done by RHT on the 17/03/2025
  4.    Need : hide the price when price is 0 - set as included
  5.    Task : https://www.odoo.com/odoo/project.task/4648516
  6.    Pastebin : https://pastebin.com/5Zqb6sVj
  7.    -->
  8.     <xpath position="replace" expr="//td[@name='td_price_unit']">
  9.         <td name="td_price_unit" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
  10.             <span t-if="line.price_unit != 0"  t-field="line.price_unit">9.00</span>
  11.             <span t-else="">Compris</span>
  12.         </td>
  13.     </xpath>
  14.     <xpath position="replace" expr="//td[@name='td_subtotal']">
  15.         <td name="td_subtotal" class="text-end o_price_total">
  16.             <span t-if="line.price_unit != 0"  t-field="line.price_subtotal">27.00</span>
  17.             <span t-else="">Compris</span>
  18.         </td>
  19.     </xpath>
  20. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement