summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-07-20 15:56:36 +0200
committerqsm-odoo <qsm@odoo.com>2016-07-20 17:02:58 +0200
commitac4c2531adad4560b346afa106e4e84268f421da (patch)
tree39b217ca63a4d2e74d429930a1987df076d55cbb /addons
parent33fe066cbb9ba71c410f6df22739577649ecadba (diff)
[IMP] theme_default, website_theme_install: add link to themes
The website_theme_install module now adds a link in the theme customize modal to propose to install a theme when none is installed. Also correct the name of the theme_default customize modal template.
Diffstat (limited to 'addons')
-rw-r--r--addons/theme_default/views/templates.xml2
-rw-r--r--addons/website_theme_install/views/views.xml9
2 files changed, 9 insertions, 2 deletions
diff --git a/addons/theme_default/views/templates.xml b/addons/theme_default/views/templates.xml
index e9ed1f62d6b..b3cb5a120ca 100644
--- a/addons/theme_default/views/templates.xml
+++ b/addons/theme_default/views/templates.xml
@@ -6,7 +6,7 @@
</xpath>
</template>
-<template id="customize_modal" inherit_id="website.theme_customize" name="treehouse Customize Modal" priority="1">
+<template id="customize_modal" inherit_id="website.theme_customize" name="theme_default modal">
<xpath expr="div" position="replace">
<div id="theme_customize_modal" class="modal fade">
<div class="modal-dialog">
diff --git a/addons/website_theme_install/views/views.xml b/addons/website_theme_install/views/views.xml
index 1b5ec2e3912..c60b4e7a688 100644
--- a/addons/website_theme_install/views/views.xml
+++ b/addons/website_theme_install/views/views.xml
@@ -47,7 +47,7 @@
</record>
<!-- Actions to list themes with custom kanban (launched on module installation) -->
- <record id="theme_install_kanban_action" model="ir.actions.act_window">
+ <record id="theme_install_kanban_action" model="ir.actions.act_window">
<field name="name">Choose Your Theme</field>
<field name="res_model">ir.module.module</field>
<field name="view_mode">kanban</field>
@@ -74,4 +74,11 @@ action = {
<field name="action_id" ref="theme_install_todo_action"/>
<field name="type">automatic</field>
</record>
+
+ <!-- Add link to theme install in default customize modal -->
+ <template id="customize_modal" inherit_id="website.theme_customize" priority="1">
+ <xpath expr="//div[hasclass('modal-header')]" position="inside">
+ <a href="/web#action=website_theme_install.theme_install_kanban_action">See themes here</a>
+ </xpath>
+ </template>
</odoo>