Use the normalized format for the over shipment of sale

This commit is contained in:
Cédric Krier
2026-01-09 17:14:17 +01:00
parent a3eb5e234e
commit 08bb367b7d
+1 -1
View File
@@ -60,7 +60,7 @@ class Line(metaclass=PoolMeta):
if tolerance is not None:
maximal_quantity = abs(self.quantity * tolerance)
if shipped_quantity > maximal_quantity:
name = 'over_shipment_sale_line_%d' % self.id
name = Warning.format('over_shipment', [self])
if Warning.check(name):
raise OverShipmentWarning(
name,