odoo/odoo#159316

Created by Website, Quentin Smetz (qsm)
label
odoo-dev:16.0-fix-room-creation-and-more-qsm
head
e2495d6263f6f24bdd27b6e94033e73550273f6b
target
16.0
merged
2 months ago by Website, Quentin Smetz (qsm)
forward-ports

[FIX] website_event_meet, *: properly await edit option before reload

*: website_sale

This is a follow-up of [1], which missed some occurrence of the same issue that it fixed.

E.g.
- Add a delay to the "write" of the event model
- Go to /event/<event_id>/community
- Enter edit mode
- Click on the page
- Enable the room creation option => The page reloads but nothing seems to have been done... it is
actually *being* done: the page reloaded too soon.

Note: this commit also marks some other occurrences which are not buggy but might be in the future if not properly changed. To be adapted in the master forward-port.

[1]: https://github.com/odoo/odoo/commit/556ae457b02e9c077d09fa9c3f9f1e6c6e26b345