[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#41168 X-original-commit: eed3171f2f057223c3fbedd95ce6bcde2124f46c Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user