diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-01-20 12:43:48 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-01-24 13:02:01 +0000 |
| commit | 5a4edc09d67b42a218c6077a83998a8ed11c4fa3 (patch) | |
| tree | bd4b406e80e728676b8b70909f63d2089d1e2acb /addons/website_event/views | |
| parent | 4ca401a8556448d0ec1cf0e5e0f04de5fd602a1e (diff) | |
[IMP] website, *: prepare theme snippets addition in website
* website_blog, website_event, website_form, website_mail_channel,
website_mass_mailing, website_sale, website_twitter
+ Reorganize the order.
+ Do not promote apps via snippets when they already are promoted via
the "New" menu. Also do not promote apps in the same snippet section
more than once.
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
Diffstat (limited to 'addons/website_event/views')
| -rw-r--r-- | addons/website_event/views/event_snippets.xml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/addons/website_event/views/event_snippets.xml b/addons/website_event/views/event_snippets.xml index fb890988102..9523a6b82df 100644 --- a/addons/website_event/views/event_snippets.xml +++ b/addons/website_event/views/event_snippets.xml @@ -46,15 +46,13 @@ </div> </template> -<!-- Replace snippet demo with actual snippet and options --> -<template id="remove_external_snippets" inherit_id="website.external_snippets"> - <xpath expr="//t[@t-install='website_event']" position="replace"/> -</template> - +<!-- Snippets and options --> <template id="snippets" inherit_id="website.snippets"> - <xpath expr="//div[@id='snippet_content']//t[@t-snippet][last()]" position="after"> - <t t-snippet="website_event.s_country_events" t-thumbnail="/website_event/static/src/img/world_map.jpg"/> - <t t-snippet="website_event.s_speaker_bio" t-thumbnail="/website_event/static/src/img/s_country_events.png"/> + <xpath expr="//t[@id='event_local_events_hook']" position="replace"> + <t t-snippet="website_event.s_country_events" t-thumbnail="/website_event/static/src/img/snippets_thumbs/s_country_events.png"/> + </xpath> + <xpath expr="//t[@id='event_speaker_bio_hook']" position="replace"> + <t t-snippet="website_event.s_speaker_bio" t-thumbnail="/website_event/static/src/img/snippets_thumbs/s_speaker_bio.png"/> </xpath> </template> |
