summaryrefslogtreecommitdiff
path: root/addons/theme_default
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-09-03 17:00:12 +0000
committerRomain Derie <rde@odoo.com>2019-10-01 16:14:57 +0000
commit15e3646b4f91165966aa92be919fb492a5fd4c24 (patch)
treef649fa286d5863264b8dd5a2caa190bc3e2f8a46 /addons/theme_default
parent0987ab4bfd02556c96290153cbd4c52e2cf7d295 (diff)
[FIX] website_theme_install,*: redirect to frontend after theme install
*: theme_bootswatch, theme_default Before this commit, the first time a website was loading a theme, it would not be redirected to the frontend afterward (even if that theme was already installed on another website). Any other theme installation on that website would redirect to frontend as it should. Indeed, the first time it would use the `act_url` returned by `next()` which would only be called during the first time installation on the website. All the `ir.action.todo` related to themes can be removed anyway, as you can't install directly a theme. It can only be installed through website settings > load a theme. In which case we will always want to redirect to frontend. task-2070463 closes odoo/odoo#37306 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/theme_default')
-rw-r--r--addons/theme_default/__manifest__.py1
-rw-r--r--addons/theme_default/data/theme_default_data.xml12
2 files changed, 0 insertions, 13 deletions
diff --git a/addons/theme_default/__manifest__.py b/addons/theme_default/__manifest__.py
index aaac9fa618b..adee84264d2 100644
--- a/addons/theme_default/__manifest__.py
+++ b/addons/theme_default/__manifest__.py
@@ -9,7 +9,6 @@
'version': '1.0',
'depends': ['website', 'website_theme_install'],
'data': [
- 'data/theme_default_data.xml',
],
'images': [
'static/description/cover.png',
diff --git a/addons/theme_default/data/theme_default_data.xml b/addons/theme_default/data/theme_default_data.xml
deleted file mode 100644
index 21e118429f8..00000000000
--- a/addons/theme_default/data/theme_default_data.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<odoo>
- <record id="action_website" model="ir.actions.act_url">
- <field name="name">Website</field>
- <field name="url">/</field>
- <field name="target">self</field>
- </record>
- <record id="base.open_menu" model="ir.actions.todo">
- <field name="action_id" ref="action_website"/>
- <field name="state">open</field>
- </record>
-</odoo>