Skip to content
Snippets Groups Projects
Commit 7de93459 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] website: avoid marking some non-editable tab panes as editable

This reviews [1] (in particular changing my mind about [2] upon further
review). Indeed this was marking potential non editable tab panes as
editable by searching the whole DOM instead of editable savable zones.

In the end, what is searched for is also reviewed. Instead of searching
for a very specific structure, we now mark all oe_structure which are
direct children of tab-pane as editable (if in an editable zone) and
their parent (the tab-pane who have a direct oe_structure child) as
readonly.

[1]: https://github.com/odoo/odoo/commit/5fd99855654d220bafb8887cd0ae267042836d4b
[2]: https://github.com/odoo/odoo/pull/109430#discussion_r1115792052



closes odoo/odoo#113605

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent d1587758
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment