Advertisement
rht_odoo

[QW][4603152]line_visible_for_customer

Feb 28th, 2025 (edited)
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.63 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    Done by RHT on the 28/02/2025
  4.    Need: choose which line is visible for the customer
  5.    Task : https://www.odoo.com/odoo/project.task/4603152
  6.    Pastebin : https://pastebin.com/Ucxwxj87
  7.    -->
  8.   <xpath expr="//t[@t-foreach='lines_to_report']" position="attributes">
  9.         <attribute name="t-foreach">doc.order_line.filtered(lambda l:l.x_studio_visible_for_customer)</attribute>
  10.     </xpath>
  11.     <xpath expr="//tbody//tr/t" position="attributes">
  12.         <attribute name="t-if">not line.display_type and line.product_type != 'combo' and line.x_studio_visible_for_customer</attribute>
  13.     </xpath>
  14. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement