Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <data>
- <!--
- Done by RHT on the 28/02/2025
- Need: choose which line is visible for the customer
- Task : https://www.odoo.com/odoo/project.task/4603152
- Pastebin : https://pastebin.com/Ucxwxj87
- -->
- <xpath expr="//t[@t-foreach='lines_to_report']" position="attributes">
- <attribute name="t-foreach">doc.order_line.filtered(lambda l:l.x_studio_visible_for_customer)</attribute>
- </xpath>
- <xpath expr="//tbody//tr/t" position="attributes">
- <attribute name="t-if">not line.display_type and line.product_type != 'combo' and line.x_studio_visible_for_customer</attribute>
- </xpath>
- </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement