[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
committed by Ernesto Tejeda
parent 3f2d9d2bf2
commit bdbe7cdf6a
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "Valued picking linked with MRP Kits",
"summary": "Allow to summarize the picking related with the selled kits",
"version": "13.0.1.0.1",
"version": "13.0.1.0.2",
"development_status": "Beta",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-reporting",

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>