[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user