diff options
| author | fja-odoo <fja@odoo.com> | 2020-03-19 14:17:11 +0000 |
|---|---|---|
| committer | fja-odoo <fja@odoo.com> | 2020-04-27 16:36:31 +0000 |
| commit | 11c60739e4f4379a61581ed179bc7debbb5e91f9 (patch) | |
| tree | dfe454200b0a95aff1d692a16d5a292f71603dfe /addons/website/data | |
| parent | 51ab03e4b140cd5633e1f9c7df6eb1a2fd20e44f (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/data')
| -rw-r--r-- | addons/website/data/website_data.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website/data/website_data.xml b/addons/website/data/website_data.xml index 6c4f631e5ed..6eeb05326f8 100644 --- a/addons/website/data/website_data.xml +++ b/addons/website/data/website_data.xml @@ -25,7 +25,7 @@ <t t-call="website.layout"> <div id="wrap"> <div class="oe_structure"> - <section class="s_title pt24 pb24" data-vcss="001"> + <section class="s_title pt24 pb24" data-vcss="001" data-snippet="s_title"> <div class="container"> <h1>Contact us</h1> </div> @@ -35,7 +35,7 @@ <div class="row"> <div class="col-lg-8"> <div class="oe_structure"> - <section class="s_text_block"> + <section class="s_text_block" data-snippet="s_text_block"> <div class="container"> <div class="row"> <div class="col-lg-12"> @@ -73,13 +73,13 @@ <t t-call="website.layout"> <div id="wrap"> <div class="oe_structure"> - <section class="s_title pt24 pb24" data-vcss="001"> + <section class="s_title pt24 pb24" data-vcss="001" data-snippet="s_title"> <div class="container"> <h1 class="text-center">About us</h1> <h3 class="text-muted text-center">Great products for great people</h3> </div> </section> - <section class="s_text_image pt8 pb8"> + <section class="s_text_image pt8 pb8" data-snippet="s_text_image"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-6 pt16 pb16"> |
