odoo/odoo#163591

Created by fw-bot
label
odoo-dev:master-17.0-website_event_sale-opw-3864873-pebr-fYAj-fw
head
85ea52c6058f95dd1c3828927243462d2121fb47
target
master
merged
3 weeks ago by SM Customer, Jérémy Hennecart (jeh)
forward-port of
odoo/odoo#162657

[FW][FIX] website_event_sale: ensure sale_last_order_id is set in session

This commit fixes an issue where the `sale_last_order_id` was not being set in the session when the extra info step was added to the checkout process. This caused an error during the validation of event payment in `shop_payment_validate`.

Steps to reproduce the issue:
1. Install `website_event_sale` and set up a payment provider.
2. Add the extra info step to the checkout in the website.
3. Register for a paid event from the website.
4. Proceed to pay the order, which would previously result in an error.

opw-3864873

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

Forward-Port-Of: odoo/odoo#163376
Forward-Port-Of: odoo/odoo#162657