Add methods to format number and symbol on Lang
and add format number with symbol on Report issue10730 review371831002
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user