-
- Downloads
[FIX] website, web_editor: fix empty parallax snippet not being removed
Previously, when removing all the content of a snippet, that snippet
would get automatically deleted. This was not the case for parallax
snippets because we previously intended the user to drop the parallax
snippet, empty it, and drop other content inside of it.
Recently, we added the parallax option on all snippets, rendering the
previous workflow obsolete. There is now no longer any reason to keep
empty parallax snippets. This commit fixes that.
task-2446008
closes odoo/odoo#64907
Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
Showing
- addons/web_editor/static/src/js/editor/snippets.editor.js 15 additions, 7 deletionsaddons/web_editor/static/src/js/editor/snippets.editor.js
- addons/website/static/src/js/editor/snippets.editor.js 8 additions, 0 deletionsaddons/website/static/src/js/editor/snippets.editor.js
- addons/website/static/tests/tours/snippet_empty_parent_autoremove.js 75 additions, 0 deletions...ite/static/tests/tours/snippet_empty_parent_autoremove.js
- addons/website/tests/__init__.py 1 addition, 0 deletionsaddons/website/tests/__init__.py
- addons/website/tests/test_snippets.py 12 additions, 0 deletionsaddons/website/tests/test_snippets.py
- addons/website/views/assets.xml 1 addition, 0 deletionsaddons/website/views/assets.xml
Loading
Please register or sign in to comment