Open elmeriniemela opened 2 months ago
Hi @vava-odoo,
When can I expect a fix for this bug? It's a bit embarrising as random website visitors will sometimes see the "Registered" banner even though they have not even seen the event before.
Hi @elmeriniemela Difficult to say, I only redirect to the related teams by tagging issues. If you have a subscription, the fast track is to open a ticket at odoo.com/help, as those get the priority. Cheers
Hi @vava-odoo
Thanks for the reply and clarification. Hopefully someone will have time to investigate this soon :)
br. Elmeri
Impacted versions: Reproducible at least in V16
Steps to reproduce:
Setup a clean local V16 with only latest Odoo base code and ability to restart the server.
install website_event
Log out from the system and go to /events as a public user.
register to the first event
After registration, when viewing /events the green banner "Registered" is not visible even though the website visitor is registred. At this point the ORM cache has the view rendered before registration, and the view is not updated before worker restarts.![image](https://github.com/odoo/odoo/assets/36383311/a507e7d5-7c2f-4159-9780-67d0c0ce1dbd)
But if worker (or server) is restarted, the (ORM cache is resetted) and "Registered" banner appears.![image](https://github.com/odoo/odoo/assets/36383311/736c0205-e873-4839-977e-3db7bede8c8e)
Now the "Registered" banner is in ORM cache until the worker restarts, and website will show "Registred" for ALL public users whose request happens to hit the same worker, causing a lot of confusion for users that have not actually registered for any event.
Here is a debugged stack trace that shows method
_get_cached_values
ofir.qweb
of being the culprit who stores the dynamic view into the worker orm cache until restart: