Browse Source

[IMP] b_shift : change configuration menu order

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
3d2be9a596
  1. 49
      beesdoo_shift/views/res_config_view.xml
  2. 45
      beesdoo_shift/views/task_template.xml

49
beesdoo_shift/views/res_config_view.xml

@ -5,6 +5,29 @@
-->
<openerp>
<data>
<record model="ir.ui.view" id="daynumber_view_tree">
<field name="name">Day Number List</field>
<field name="model">beesdoo.shift.daynumber</field>
<field name="arch" type="xml">
<tree editable="top">
<field name="name" />
<field name="number" />
<field name="active" />
</tree>
</field>
</record>
<record model="ir.ui.view" id="type_view_tree">
<field name="name">Shift Type List</field>
<field name="model">beesdoo.shift.type</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="description" />
<field name="active" />
</tree>
</field>
</record>
<record model="ir.ui.view" id="shift_settings_view_form">
<field name="name">Shifts Configuration Form</field>
@ -23,6 +46,31 @@
</field>
</record>
<menuitem name="Configuration"
id="menu_configuration_top"
parent="menu_root"
groups="beesdoo_shift.group_planning_management"
sequence="21"
/>
<record model="ir.actions.act_window" id="action_day_number">
<field name="name">Day Number</field>
<field name="res_model">beesdoo.shift.daynumber</field>
<field name="view_mode">tree</field>
</record>
<menuitem name="Shift Day" id="menu_configuration_day"
parent="menu_configuration_top" action="action_day_number" />
<record model="ir.actions.act_window" id="action_type">
<field name="name">Shift Type</field>
<field name="res_model">beesdoo.shift.type</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Shift Type" id="menu_configuration_type"
parent="menu_configuration_top" action="action_type" />
<record model="ir.actions.act_window" id="action_shift_settings">
<field name="name">Settings</field>
<field name="res_model">beesdoo.shift.config.settings</field>
@ -36,5 +84,6 @@
action="action_shift_settings"
groups="beesdoo_shift.group_cooperative_admin"
/>
</data>
</openerp>

45
beesdoo_shift/views/task_template.xml

@ -183,31 +183,6 @@
groups="beesdoo_shift.group_shift_management" />
<!-- Configuration -->
<record model="ir.ui.view" id="daynumber_view_tree">
<field name="name">Day Number List</field>
<field name="model">beesdoo.shift.daynumber</field>
<field name="arch" type="xml">
<tree editable="top">
<field name="name" />
<field name="number" />
<field name="active" />
</tree>
</field>
</record>
<record model="ir.ui.view" id="type_view_tree">
<field name="name">Shift Type List</field>
<field name="model">beesdoo.shift.type</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="description" />
<field name="active" />
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_generate_shift_template_wizard">
<field name="name">Generate Shift Template</field>
<field name="res_model">beesddoo.shift.generate_shift_template</field>
@ -240,24 +215,4 @@
</form>
</field>
</record>
<menuitem name="Configuration" id="menu_configuration_top"
parent="menu_root" groups="beesdoo_shift.group_planning_management" />
<record model="ir.actions.act_window" id="action_day_number">
<field name="name">Day Number</field>
<field name="res_model">beesdoo.shift.daynumber</field>
<field name="view_mode">tree</field>
</record>
<menuitem name="Shift Day" id="menu_configuration_day"
parent="menu_configuration_top" action="action_day_number" />
<record model="ir.actions.act_window" id="action_type">
<field name="name">Shift Type</field>
<field name="res_model">beesdoo.shift.type</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Shift Type" id="menu_configuration_type"
parent="menu_configuration_top" action="action_type" />
</odoo>
Loading…
Cancel
Save