summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishan Gajjar <kig@odoo.com>2017-03-21 11:56:25 +0530
committerqsm-odoo <qsm@odoo.com>2017-07-04 12:02:46 +0200
commite1eb0c048ec4e8f4744cee3decd4b56ee7aef375 (patch)
treeb4a4382fd8efdd244cf619cdb2f778ccd9ede81c
parent7f65942e51d647dd7f7b7a016ead9679d455890b (diff)
[IMP] website_*: suggest installation of form editor in snippet menu
* enterprise, form_editor See commit https://github.com/odoo/odoo/commit/aaeef14903d4a3f359fcd6dd61a4f8ee41c947a4
-rw-r--r--__manifest__.py2
-rw-r--r--static/src/img/s_website_form.pngbin536 -> 0 bytes
-rw-r--r--views/snippets.xml8
3 files changed, 7 insertions, 3 deletions
diff --git a/__manifest__.py b/__manifest__.py
index 08b1b8c344a..49e6ffcbe4d 100644
--- a/__manifest__.py
+++ b/__manifest__.py
@@ -11,7 +11,7 @@ Odoo Form Editor
Allows you to build web forms on the website using the website builder.
""",
- 'depends': ['website_form'],
+ 'depends': ['website_enterprise', 'website_form'],
'data': [
'data/mail_mail_data.xml',
'views/website_form_editor_templates.xml',
diff --git a/static/src/img/s_website_form.png b/static/src/img/s_website_form.png
deleted file mode 100644
index 3df58edabd1..00000000000
--- a/static/src/img/s_website_form.png
+++ /dev/null
Binary files differ
diff --git a/views/snippets.xml b/views/snippets.xml
index e07ff2c69a4..cfc9f6d5827 100644
--- a/views/snippets.xml
+++ b/views/snippets.xml
@@ -12,9 +12,13 @@
</form>
</template>
+ <template id="remove_external_snippets" inherit_id="website_enterprise.external_snippets">
+ <xpath expr="//t[@t-install='website_form_editor']" position="replace"/>
+ </template>
+
<template id="register_s_website_form" inherit_id="website.snippets" name="Snippet Form Builder">
- <xpath expr="//div[@id='snippet_feature']/div[contains(@class, 'o_panel_body')]" position="inside">
- <t t-snippet="website_form_editor.s_website_form" t-thumbnail="/website_form_editor/static/src/img/s_website_form.png"/>
+ <xpath expr="//div[@id='snippet_feature']//t[@t-snippet][last()]" position="after">
+ <t t-snippet="website_form_editor.s_website_form" t-thumbnail="/website_enterprise/static/src/img/s_website_form.png"/>
</xpath>
</template>