odoo/odoo#98616

Created by fw-bot
label
odoo-dev:saas-15.4-15.0-opw-2883592-1-delivery_method_switch_giftcards-roen-tRJL-fw
head
18bcc5b18bc33a4e61f226a1f32a18720656df0c
target
saas-15.4 (inactive)
merged
2 years ago by William Braeckman (wbr)
forward-port of
odoo/odoo#96855

[FW][FIX] website_sale_delivery: keep delivery method when using giftcards

Current behavior:
If you have atleast 2 delivery methods available on the website,
and try to pay with a giftcard the selected delivery method will
always switch to the first method of the list.

Steps to reproduce:
- Activate giftcards for website
- Publish atleast 2 delivery methods (one free and one not free)
- Go on the website shop, and add product to the cart
- Process checkout and select the not free delivery method
- Pay with giftcard
- The delivery price is 0 so the delivery method has been
modified

opw-2883592
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: odoo/odoo#98579
Forward-Port-Of: odoo/odoo#96855