Format quantities of over shipment warning message with the unit

This commit is contained in:
Cédric Krier
2024-09-06 10:09:14 +02:00
parent 52a03f03df
commit 899d9db2ee
+4 -2
View File
@@ -66,5 +66,7 @@ class Line(metaclass=PoolMeta):
name,
gettext('sale_shipment_tolerance.msg_over_shipment',
line=self.rec_name,
shipped=lang.format_number(shipped_quantity),
maximal=lang.format_number(maximal_quantity)))
shipped=lang.format_number_symbol(
shipped_quantity, self.unit),
maximal=lang.format_number_symbol(
maximal_quantity, self.unit)))