Skip to content

Commit

Permalink
[ADD] menu to cooperator settings
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Jul 12, 2024
1 parent 94096e6 commit 7eec21c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cooperator/views/menus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ SPDX-License-Identifier: AGPL-3.0-or-later
sequence="100"
groups="cooperator_group_manager"
/>
<menuitem
id="menu_cooperator_settings"
name="Settings"
action="action_cooperator_config"
parent="menu_cooperator_config"
sequence="0"
/>

<menuitem
name="Share type"
id="menu_cooperator_share_product"
Expand Down
8 changes: 8 additions & 0 deletions cooperator/views/res_config_settings_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -686,5 +686,13 @@
</xpath>
</field>
</record>
<record id="action_cooperator_config" model="ir.actions.act_window">
<field name="name">Settings</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="context">{'module' : 'cooperator', 'bin_size': False}</field>
</record>

</odoo>

0 comments on commit 7eec21c

Please sign in to comment.