summaryrefslogtreecommitdiff
path: root/addons/website_slides/data
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2020-03-19 14:17:11 +0000
committerfja-odoo <fja@odoo.com>2020-04-27 16:36:31 +0000
commit11c60739e4f4379a61581ed179bc7debbb5e91f9 (patch)
treedfe454200b0a95aff1d692a16d5a292f71603dfe /addons/website_slides/data
parent51ab03e4b140cd5633e1f9c7df6eb1a2fd20e44f (diff)
[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>
Diffstat (limited to 'addons/website_slides/data')
-rw-r--r--addons/website_slides/data/slide_slide_demo.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_slides/data/slide_slide_demo.xml b/addons/website_slides/data/slide_slide_demo.xml
index 7694fc3e213..b5f3004e8aa 100644
--- a/addons/website_slides/data/slide_slide_demo.xml
+++ b/addons/website_slides/data/slide_slide_demo.xml
@@ -225,7 +225,7 @@
<field name="slide_type">webpage</field>
<field name="channel_id" ref="website_slides.slide_channel_demo_1_gard1"/>
<field name="html_content" type="html">
-<section class="s_cover parallax bg-black-50 pt16 pb16" data-scroll-background-ratio="0" style="background-image: none;">
+<section class="s_cover parallax bg-black-50 pt16 pb16" data-scroll-background-ratio="0" style="background-image: none;" data-snippet="s_cover">
<span class="s_parallax_bg oe_img_bg" style="background-image: url('/website_slides/static/src/img/slide_demo_tree_img_1.jpg'); background-position: 50% 0;"></span>
<div class="container">
<div class="row s_nb_column_fixed">
@@ -240,7 +240,7 @@
</div>
</div>
</section>
-<section class="s_text_image pt32 pb32">
+<section class="s_text_image pt32 pb32" data-snippet="s_text_image">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 pt16 pb16">
@@ -458,7 +458,7 @@
<field name="slide_type">webpage</field>
<field name="channel_id" ref="website_slides.slide_channel_demo_2_gard2"/>
<field name="html_content" type="html">
-<section class="s_cover parallax bg-black-50 pt16 pb16" data-scroll-background-ratio="0" style="background-image: none;">
+<section class="s_cover parallax bg-black-50 pt16 pb16" data-scroll-background-ratio="0" style="background-image: none;" data-snippet="s_cover">
<span class="s_parallax_bg oe_img_bg" style="background-image: url('/website_slides/static/src/img/slide_demo_tree_img_3.jpg'); background-position: 50% 0;"></span>
<div class="container">
<div class="row s_nb_column_fixed">
@@ -473,7 +473,7 @@
</div>
</div>
</section>
-<section class="s_text_image pt32 pb32">
+<section class="s_text_image pt32 pb32" data-snippet="s_text_image">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 pt16 pb16">