[FIX] stock: display float with correct decimal

Before this commit, on the delivery slip, the quantities aren't
displayed at the same way if we display the move ones or move line ones.
In the first case, we print directly the value from a record, so the
float decimal is correclty placed when the float is converted into a
string.
In the second case, we get the value from a dict, so there is no
conversion and the float is simply translated into a string.

For example, for 2 qty.:
  - For a move it display 2.00
  - For a move line it display 2

task-2373833
This commit is contained in:
svs-odoo
2021-06-10 07:51:53 +00:00
parent a7e0268d64
commit fbf76c1f27
+2 -1
View File
@@ -204,7 +204,8 @@
</p>
</td>
<td class="text-center" name="move_line_aggregated_qty_done">
<span t-esc="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']"/>
</td>
</tr>