Skip to content

Commit

Permalink
[ADD] menu to shift settings (originally in shift_attendance)
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Apr 19, 2023
1 parent b1e6cbe commit a6f9841
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions shift/views/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,20 @@
action="action_type"
/>

<record model="ir.actions.act_window" id="action_shift_settings">
<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' : 'shift'}</field>
</record>

<menuitem
name="Shift Settings"
id="menu_shift_settings"
parent="shift.menu_configuration_top"
action="action_shift_settings"
groups="shift.group_cooperative_admin"
/>
</odoo>

0 comments on commit a6f9841

Please sign in to comment.