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/fjwJJrVX
- -->
- <xpath expr="//t[@t-set='lines']" position="replace">
- <t t-set="lines" t-value="o.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"/>
- <t t-set="lines" t-value="lines.filtered(lambda l:l.x_studio_visible_for_customer)"/>
- </xpath>
- </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement