[IMP] stock: clean duplicated key

Two key are used for the same purpose. Remove one and
use its content directly in the report

clean commit bef1765b197a9e9d510a7d20d0364333402473b0

Part-of: odoo/odoo#82312
This commit is contained in:
Arnold Moyaux
2022-01-07 20:42:44 +00:00
parent 69dbf4871c
commit fe0035b3e3
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -773,8 +773,7 @@ class StockMoveLine(models.Model):
'description': description,
'qty_done': move_line.qty_done,
'qty_ordered': qty_ordered,
'product_uom': uom.name,
'product_uom_rec': uom,
'product_uom': uom,
'product': move_line.product_id}
else:
aggregated_move_lines[line_key]['qty_done'] += move_line.qty_done
+2 -2
View File
@@ -240,13 +240,13 @@
<td class="text-center" name="move_line_aggregated_qty_ordered">
<span t-esc="aggregated_lines[line]['qty_ordered']"
t-options="{'widget': 'float', 'decimal_precision': 'Product Unit of Measure'}"/>
<span t-esc="aggregated_lines[line]['product_uom']"/>
<span t-esc="aggregated_lines[line]['product_uom'].name"/>
</td>
<td class="text-center" name="move_line_aggregated_qty_done">
<t t-if="aggregated_lines[line]['qty_done']">
<span t-esc="aggregated_lines[line]['qty_done']"
t-options="{'widget': 'float', 'decimal_precision': 'Product Unit of Measure'}"/>
<span t-esc="aggregated_lines[line]['product_uom']"/>
<span t-esc="aggregated_lines[line]['product_uom'].name"/>
</t>
</td>
</tr>