You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
3.5 KiB
91 lines
3.5 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2019-2020 Elouan Le Bars <elouan@coopiteasy.be>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
<odoo>
|
|
<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>
|
|
<field name="model">beesdoo.shift.config.settings</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Settings" class="oe_form_configuration" create="false" delete="false" >
|
|
<header>
|
|
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
|
|
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
|
|
</header>
|
|
<separator string="General Settings"/>
|
|
<group name="Attendance Sheets">
|
|
<field name="card_support"/>
|
|
<field name="attendance_sheet_generation_interval"/>
|
|
<field name="default_task_type_id"/>
|
|
</group>
|
|
</form>
|
|
</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>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">inline</field>
|
|
</record>
|
|
|
|
<menuitem name="Settings"
|
|
id="menu_shift_settings"
|
|
parent="menu_configuration_top"
|
|
action="action_shift_settings"
|
|
groups="beesdoo_shift.group_cooperative_admin"
|
|
/>
|
|
|
|
</data>
|
|
</odoo>
|