Do not format quantities with digits in over shipment warning message

The rounding, due to the number of digits, may display an confusing message
for which both quantities are the same.

Closes #13495
(grafted from 5bd93cbda1c0f5280212c7fbb387299fea026a79)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2024-09-06 10:08:09 +02:00
parent 01cfe12df8
commit 0a88f54041
+2 -2
View File
@@ -67,6 +67,6 @@ class Line(metaclass=PoolMeta):
gettext('sale_shipment_tolerance.msg_over_shipment',
line=self.rec_name,
shipped=lang.format(
'%.*f', (self.unit.digits, shipped_quantity)),
'%f', shipped_quantity),
maximal=lang.format(
'%.*f', (self.unit.digits, maximal_quantity))))
'%f', maximal_quantity)))