[IMP] theme_*: add ir.actions.todo to themes

installing a theme redirects to the website instead of the backend menu.
This commit is contained in:
Denis Vermylen (dve)
2016-09-02 17:42:42 +02:00
parent 3311c57839
commit e142d78d92
4 changed files with 26 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@
'version': '1.0',
'depends': ['website'],
'data': [
'data/theme_bootswatch_data.xml',
'views/theme_bootswatch_templates.xml',
],
'images': ['static/description/bootswatch.png'],
@@ -0,0 +1,12 @@
<?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>
+1
View File
@@ -9,6 +9,7 @@
'version': '1.0',
'depends': ['website'],
'data': [
'data/theme_default_data.xml',
'views/theme_default_templates.xml',
],
'images': [
@@ -0,0 +1,12 @@
<?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>