odoo/odoo#153485

Created by Mathys Paul (matp)
label
odoo-dev:17.0-sale-using-same-coupon-twice-removes-discount-matp
head
ed74552308fa22bf760ef8a1d1c704bd7e662523
target
17.0
merged
1 month ago by Sales, Victor Feyens (vfe)
forward-ports

[FIX] sale_loyalty: prevent coupon removal on double apply

Addresses the issue where reapplying an already applied coupon
in the website shop led to the disappearance of the discount.
With this fix, the discount remains applied, and the system
continues to inform the user that the coupon has already been
used, preventing confusion and maintaining consistency in the
discount application process.

task-3621246