Advertisement
rht_odoo

[QW][4643523]document_info_if_price_above_zero

Mar 12th, 2025 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.89 KB | None | 0 0
  1. [QW][4643523]invoice_document_info_if_price_above_zero
  2. <data>
  3.     <!--
  4.    Done by RHT on the 1/03/2025
  5.    Need : Quotations are displaying all the product for correct inventory. Some product should have nor information shown if unit_price = 0. Hide the Unit price (price_unit), Tax (taxes) and Subtotal (price_subtotal) for line where unit price = 0
  6.    Task : https://www.odoo.com/odoo/project/5686/tasks/4643523
  7.    Pastebin : https://pastebin.com/j3whvGXK
  8.    -->
  9.     <xpath expr="//td[@name='td_price_unit']" position="attributes">
  10.         <attribute name="t-if">line.price_unit &gt; 0</attribute>
  11.     </xpath>
  12.     <xpath expr="//td[@name='td_taxes']" position="attributes">
  13.         <attribute name="t-if">line.price_unit &gt; 0</attribute>
  14.     </xpath>
  15.     <xpath expr="//td[@name='td_subtotal']" position="attributes">
  16.         <attribute name="t-if">not line.is_downpayment and line.price_unit &gt; 0</attribute>
  17.     </xpath>"
  18.    
  19. </data>
  20.  
  21. [QW][4643523]sale_document_info_if_price_above_zero
  22. <data>
  23.     <!--
  24.    Done by RHT on the 1/03/2025
  25.    Need : Quotations are displaying all the product for correct inventory. Some product should have nor information shown if unit_price = 0. Hide the Unit price (price_unit), Tax (taxes) and Subtotal (price_subtotal) for line where unit price = 0
  26.    Task : https://www.odoo.com/odoo/project/5686/tasks/4643523
  27.    Pastebin : https://pastebin.com/j3whvGXK
  28.    -->
  29.     <xpath expr="//td[@name='td_priceunit']" position="attributes">
  30.         <attribute name="t-if">line.price_unit &gt; 0</attribute>
  31.     </xpath>
  32.     <xpath expr="//td[@name='td_taxes']" position="attributes">
  33.         <attribute name="t-if">line.price_unit &gt; 0</attribute>
  34.     </xpath>
  35.     <xpath expr="//td[@name='td_subtotal']" position="attributes">
  36.         <attribute name="t-if">not line.is_downpayment and line.price_unit &gt; 0</attribute>
  37.     </xpath>"
  38.    
  39. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement