fix: use app_settings_block pattern for Settings sidebar, remove manual menuitem
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
"depends": ["base", "base_setup"],
|
"depends": ["base", "base_setup"],
|
||||||
"data": [
|
"data": [
|
||||||
"views/res_config_settings_views.xml",
|
"views/res_config_settings_views.xml",
|
||||||
"views/menus.xml",
|
|
||||||
],
|
],
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"application": False,
|
"application": False,
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="fleetflow_action_config_settings" model="ir.actions.act_window">
|
|
||||||
<field name="name">FleetFlow</field>
|
|
||||||
<field name="res_model">res.config.settings</field>
|
|
||||||
<field name="view_mode">form</field>
|
|
||||||
<field name="target">inline</field>
|
|
||||||
<field name="context">{'module': 'dlv_fleetflow_base'}</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<menuitem id="fleetflow_menu_config_settings"
|
|
||||||
name="FleetFlow"
|
|
||||||
parent="base_setup.menu_all_settings"
|
|
||||||
sequence="70"
|
|
||||||
action="fleetflow_action_config_settings"/>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -7,9 +7,10 @@
|
|||||||
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//div[hasclass('settings')]" position="inside">
|
<xpath expr="//div[hasclass('settings')]" position="inside">
|
||||||
<div class="app_settings_block" data-string="FleetFlow" string="FleetFlow"
|
<div class="app_settings_block"
|
||||||
data-key="dlv_fleetflow_base" groups="base.group_system">
|
data-string="FleetFlow"
|
||||||
<h2>FleetFlow</h2>
|
data-key="dlv_fleetflow_base"
|
||||||
|
groups="base.group_system">
|
||||||
<notebook/>
|
<notebook/>
|
||||||
</div>
|
</div>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|||||||
Reference in New Issue
Block a user