Skip to content
Snippets Groups Projects
Commit 47cdb150 authored by Guillaume (gdi)'s avatar Guillaume (gdi)
Browse files

[FIX] web_editor: do not update the options when destroying them

Since [this commit] it is visible that there is a race condition in the
editor. The race condition was caused by a call for an update of the
option visibility during the save, but the options may be in the
destruction process. This commit prevents the visibility of the options
from being updated when the option destruction process begins.

Before 16.0 (the merge of the frontend into the backend) the bug was
easily visible by following these steps:
- Drop 2 times the image - text block on a page
- Drop a popup block
- Save

=> During the save, a traceback occurs.
From 16.0 the race condition is more difficult to see but we still need
this fix because the problem is still there.

[this commit]: https://github.com/odoo/odoo/commit/686e011f9b54bcfe93cc22db24435d2ca9213664

Related to opw-2971181

X-original-commit: 17af7977
Part-of: odoo/odoo#107067
parent 0f131160
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment