diff options
| author | Kishan Gajjar <kig@odoo.com> | 2017-03-21 11:48:02 +0530 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-07-04 10:54:20 +0200 |
| commit | aaeef14903d4a3f359fcd6dd61a4f8ee41c947a4 (patch) | |
| tree | 60f858c1ee67be6cdcc0918f1f59a48f8d956c48 /addons/website_mass_mailing/views/snippets_templates.xml | |
| parent | 79c9f0a7a52b0d88339efcb69296ab3b66f44442 (diff) | |
[IMP] web_editor, website(_*): show all snippets even if module is not installed
* mail_channel, mass_mailing, twitter, event
- t-install attribute holds the technical name of the module that
needs to be install to use a particular snippet.
- Disable the drag & drop feature for these dummy snippets.
- Move some images to website module.
- Installed snippets display at the top of the list.
- Hide not-installed module snippets if user don't have rights to install module.
Diffstat (limited to 'addons/website_mass_mailing/views/snippets_templates.xml')
| -rw-r--r-- | addons/website_mass_mailing/views/snippets_templates.xml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/addons/website_mass_mailing/views/snippets_templates.xml b/addons/website_mass_mailing/views/snippets_templates.xml index b927b6d26f9..f9d13c78888 100644 --- a/addons/website_mass_mailing/views/snippets_templates.xml +++ b/addons/website_mass_mailing/views/snippets_templates.xml @@ -1,13 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <odoo> +<template id="remove_external_snippets" inherit_id="website.external_snippets"> + <xpath expr="//t[@t-install='mass_mailing']" position="replace"/> +</template> + <template id="snippets" inherit_id="website.snippets"> - <xpath expr="//div[@id='snippet_feature']/div[@class='o_panel_body']" position="inside"> + <xpath expr="//div[@id='snippet_feature']//t[@t-snippet][last()]" position="after"> <t groups="website_mass_mailing.group_website_popup_on_exit"> <t t-snippet="website_mass_mailing.s_newsletter_subscribe_popup" t-thumbnail="/website_mass_mailing/static/src/img/blocks/newsletter_subscribe_popup.png"/> </t> </xpath> - <xpath expr="//div[@id='snippet_content']/div[@class='o_panel_body']" position="inside"> - <t t-snippet="website_mass_mailing.s_newsletter_subscribe_form" t-thumbnail="/website_mass_mailing/static/src/img/blocks/newsletter_subscribe_form.png"/> + + <xpath expr="//div[@id='snippet_content']//t[@t-snippet][last()]" position="after"> + <t t-snippet="website_mass_mailing.s_newsletter_subscribe_form" t-thumbnail="/website/static/src/img/blocks/newsletter_subscribe_form.png"/> </xpath> </template> |
