Skip to content
Snippets Groups Projects
Commit eed3171f authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] stock: duplicated lines


When printing the 'Picking Operations' report in case of a receipt,
lines are duplicated.

This is because we need to print the `move_line_nosuggest_ids` as
displayed in the view.

opw-2125049

closes odoo/odoo#41161

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 46425ba7
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,13 @@
</thead>
<tbody>
<t t-foreach="o.move_ids_without_package.sorted(key=lambda m: m.product_id.id)" t-as="move">
<t t-foreach="move.move_line_ids.sorted(key=lambda ml: ml.location_id.id)" t-as="ml">
<t t-if="o.picking_type_id.show_reserved == False">
<t t-set="move_line_ids" t-value="move.move_line_nosuggest_ids"/>
</t>
<t t-else="1">
<t t-set="move_line_ids" t-value="move.move_line_ids"/>
</t>
<t t-foreach="move_line_ids.sorted(key=lambda ml: ml.location_id.id)" t-as="ml">
<tr>
<td>
<span t-field="ml.product_id.display_name"/><br/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment