[FIX] website_theme_install: review customization dialog message

The priority was set to a low value while it was meant to be a high
value. Indeed, we want that if that template is active, the customize
modal is emptied no matter what, so it has to be called last.

This is to have an understandable behavior if our code fails to mark the
template as inactive on a theme installation. With this commit, the
customization dialog will be empty. Without this commit, it gives an
error which can lead to think we made a mistake writing the theme's own
customization dialog while it was in fact inheriting from an emptied
dialog.
This commit is contained in:
qsm-odoo
2018-09-19 10:24:00 +02:00
parent 1c946f79fc
commit 3ecf2fbc7e
+1 -1
View File
@@ -103,7 +103,7 @@ action = {
</record>
<!-- Add link to theme install in default customize modal -->
<template id="customize_modal" inherit_id="website.theme_customize" priority="1">
<template id="customize_modal" inherit_id="website.theme_customize" priority="99">
<xpath expr="//div" position="replace">
<div>
Please <a href="/web#action=website_theme_install.theme_install_kanban_action">install a theme</a> to customize your website.