-
- Downloads
[IMP] website, *: warn user about outdated blocks
* = mass_mailing, web_editor, website_crm, website_event, website_form, website_forum, website_hr_recruitment, website_mail_channel, website_mass_mailing, website_sale, website_slides When an outdated snippet's option are activated we display a warning in the left panel that inform the user about the potential malfunctions. To do so the snippet's template key is added to the snippet as data-snippet. If a snippet is "t-call" inside another snippet, it will need to use t-snippet-call instead of t-call to have the key on himself. Those unique keys are used on snippet selection to retrieve the snippet's version in the left panel and compare it with the currently selected snippet's version. Versions are describe with data-vcss, data-vjs and data-vxml. If a snippet's key is not in the left panel we consider that snippet as outdated. Added some tests to ensure that t-snippet and t-snippet-call really have their template key as data-snippet Adapted the views to the data-snippet changes adding data-snippet="tmpl_key". Part of: https://github.com/odoo/odoo/pull/44569 task-2189669 closes odoo/odoo#50254 X-original-commit: 28a6cd49b6e87b75c2e70771e241c41778bf9e87 Related: odoo/enterprise#10236 Signed-off-by:Quentin Smetz (qsm) <qsm@odoo.com>
Showing
- addons/mass_mailing/data/mass_mailing_demo.xml 6 additions, 5 deletionsaddons/mass_mailing/data/mass_mailing_demo.xml
- addons/mass_mailing/views/themes_templates.xml 3 additions, 3 deletionsaddons/mass_mailing/views/themes_templates.xml
- addons/web_editor/models/ir_qweb.py 24 additions, 2 deletionsaddons/web_editor/models/ir_qweb.py
- addons/web_editor/static/src/js/editor/snippets.editor.js 13 additions, 0 deletionsaddons/web_editor/static/src/js/editor/snippets.editor.js
- addons/web_editor/static/src/js/editor/snippets.options.js 23 additions, 0 deletionsaddons/web_editor/static/src/js/editor/snippets.options.js
- addons/web_editor/static/src/scss/wysiwyg.scss 1 addition, 0 deletionsaddons/web_editor/static/src/scss/wysiwyg.scss
- addons/web_editor/static/src/scss/wysiwyg_snippets.scss 13 additions, 0 deletionsaddons/web_editor/static/src/scss/wysiwyg_snippets.scss
- addons/web_editor/static/src/xml/snippets.xml 6 additions, 0 deletionsaddons/web_editor/static/src/xml/snippets.xml
- addons/web_editor/views/snippets.xml 3 additions, 0 deletionsaddons/web_editor/views/snippets.xml
- addons/website/data/website_data.xml 4 additions, 4 deletionsaddons/website/data/website_data.xml
- addons/website/static/src/xml/website.s_countdown.xml 1 addition, 1 deletionaddons/website/static/src/xml/website.s_countdown.xml
- addons/website/static/tests/tours/snippet_version.js 71 additions, 0 deletionsaddons/website/static/tests/tours/snippet_version.js
- addons/website/tests/test_ui.py 3 additions, 0 deletionsaddons/website/tests/test_ui.py
- addons/website/views/assets.xml 1 addition, 0 deletionsaddons/website/views/assets.xml
- addons/website/views/snippets/s_carousel.xml 3 additions, 3 deletionsaddons/website/views/snippets/s_carousel.xml
- addons/website/views/snippets/s_media_list.xml 2 additions, 2 deletionsaddons/website/views/snippets/s_media_list.xml
- addons/website/views/snippets/s_popup.xml 1 addition, 1 deletionaddons/website/views/snippets/s_popup.xml
- addons/website/views/snippets/s_quotes_carousel.xml 1 addition, 1 deletionaddons/website/views/snippets/s_quotes_carousel.xml
- addons/website/views/snippets/s_timeline.xml 4 additions, 4 deletionsaddons/website/views/snippets/s_timeline.xml
- addons/website/views/website_templates.xml 1 addition, 1 deletionaddons/website/views/website_templates.xml
Loading
Please register or sign in to comment