From 899d9db2ee127ee894c055068ae207a67347b6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 6 Sep 2024 10:09:14 +0200 Subject: [PATCH] Format quantities of over shipment warning message with the unit --- modules/sale_shipment_tolerance/sale.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/sale_shipment_tolerance/sale.py b/modules/sale_shipment_tolerance/sale.py index d454ba2930..8263ad5467 100644 --- a/modules/sale_shipment_tolerance/sale.py +++ b/modules/sale_shipment_tolerance/sale.py @@ -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)))