Keep quantity of 1 for free shipment cost line

Closes #12128
This commit is contained in:
Cédric Krier committed 2023-04-21 16:55:42 +02:00
1 parent fa7c90cbf9
commit 010a51934e
1 file changed
-2
-2
View File
@@ -313,8 +313,6 @@ class Sale(metaclass=PoolMeta):
cost_line.unit_price = round_price(unit_price)
else:
cost_line.unit_price = round_price(cost)
if not cost_line.unit_price:
cost_line.quantity = 0
cost_line.amount = cost_line.on_change_with_amount()
return cost_line