[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.
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user