[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:
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user