Add methods to format number and symbol on Lang

and add format number with symbol on Report

issue10730
review371831002
This commit is contained in:
Maxime Richez
2021-10-04 18:52:01 +02:00
parent bbc123e602
commit edd8f3ec94
+4 -4
View File
@@ -66,7 +66,7 @@ class Line(metaclass=PoolMeta):
name,
gettext('sale_shipment_tolerance.msg_over_shipment',
line=self.rec_name,
shipped=lang.format(
'%.*f', (self.unit.digits, shipped_quantity)),
maximal=lang.format(
'%.*f', (self.unit.digits, maximal_quantity))))
shipped=lang.format_number(
shipped_quantity, self.unit.digits),
maximal=lang.format_number(
maximal_quantity, self.unit.digits)))