[FIX] stock_picking_report_valued_sale_mrp: Avoid inheritance problem

odoo.tools.convert.ParseError: "Element '<xpath expr="//tr[@t-foreach='o.move_line_ids']">' cannot be located in parent view
This commit is contained in:
Pedro M. Baeza
2022-04-30 20:14:23 +02:00
parent bb092c2f0d
commit 6d4334026c

View File

@@ -13,7 +13,7 @@
name="t-if"
>o.valued and o.sale_id and o.move_line_ids and (move_line.phantom_line or not move_line.phantom_product_id)</attribute>
</xpath>
<xpath expr="//tr[@t-foreach='o.move_line_ids']" position="attributes">
<xpath expr="//tr[@t-as='move_line']" position="attributes">
<attribute
name="t-foreach"
>o.move_line_ids.filtered(lambda x: not x.phantom_product_id or x.phantom_line)</attribute>