Advertisement
rht_odoo

[QW][4648516]report_saleorder_document_price_is_zero_set_as_inclused

Mar 17th, 2025 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.82 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/pJNw1TUf
  7.    -->
  8.     <xpath expr="//td[@name='td_priceunit']" position="replace">
  9.         <td name="td_priceunit" class="text-end text-nowrap">
  10.             <span t-if="line.price_unit &gt;0" t-field="line.price_unit">3</span>
  11.             <span t-else="">Compris</span>
  12.         </td>
  13.     </xpath>
  14.     <xpath expr="//td[@name='td_subtotal']" position="replace">
  15.         <td t-if="not line.is_downpayment" 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