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

[FIX] stock: duplicated lines


The only good solution is to set `show_reserved` to `True` to avoid any
kind of weirdness...

This reverts commit eed3171f.

closes odoo/odoo#41303

X-original-commit: de962efb
Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 433cfe66
No related branches found
No related tags found
No related merge requests found
......@@ -85,13 +85,8 @@
</thead>
<tbody>
<t t-foreach="o.move_ids_without_package.sorted(key=lambda m: m.product_id.id)" t-as="move">
<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">
<!-- In case you come accross duplicated lines, ask NIM or LAP -->
<t t-foreach="move.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