trytond-staff_workplace/workplace.xml
2016-09-28 14:20:47 +02:00

160 lines
No EOL
7.4 KiB
XML

<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<!-- WorkPlace -->
<record model="res.group" id="group_workplace_admin">
<field name="name">WorkPlace Admin</field>
</record>
<record model="res.user-res.group" id="user_admin_group_workplace_admin">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="group_workplace_admin"/>
</record>
<record model="ir.ui.view" id="workplace_view_tree">
<field name="model">staff.workplace</field>
<field name="type">tree</field>
<field name="name">workplace_tree</field>
</record>
<record model="ir.ui.view" id="workplace_view_form">
<field name="model">staff.workplace</field>
<field name="type">form</field>
<field name="name">workplace_form</field>
</record>
<record model="ir.action.act_window" id="act_workplace">
<field name="name">WorkPlace</field>
<field name="res_model">staff.workplace</field>
</record>
<record model="ir.action.act_window.view" id="act_workplace_tree_view">
<field name="sequence" eval="10"/>
<field name="view" ref="workplace_view_tree"/>
<field name="act_window" ref="act_workplace"/>
</record>
<record model="ir.action.act_window.view" id="act_workplace_form_view">
<field name="sequence" eval="20"/>
<field name="view" ref="workplace_view_form"/>
<field name="act_window" ref="act_workplace"/>
</record>
<record model="ir.model.access" id="access_workplace_admin">
<field name="model" search="[('model', '=', 'staff.workplace')]"/>
<field name="group" ref="group_workplace_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access" id="access_workplace">
<field name="model" search="[('model', '=', 'staff.workplace')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<menuitem id="menu_workplace" name="WorkPlaces" sequence="30"
parent="staff.menu_staff" action="act_workplace"/>
<!-- Employee -->
<record model="ir.ui.view" id="employee_form">
<field name="model">company.employee</field>
<field name="inherit" ref="company.employee_view_form"/>
<field name="name">employee_form</field>
</record>
<record model="ir.ui.view" id="employee_tree">
<field name="model">company.employee</field>
<field name="inherit" ref="company.employee_view_tree"/>
<field name="name">employee_tree</field>
</record>
<!-- Calendar -->
<record model="ir.ui.view" id="calendar_view_tree">
<field name="model">staff.calendar</field>
<field name="type">tree</field>
<field name="name">calendar_tree</field>
</record>
<record model="ir.ui.view" id="calendar_view_form">
<field name="model">staff.calendar</field>
<field name="type">form</field>
<field name="name">calendar_form</field>
</record>
<record model="ir.action.act_window" id="act_calendar">
<field name="name">Calendar</field>
<field name="res_model">staff.calendar</field>
</record>
<record model="ir.action.act_window.view" id="act_calendar_tree_view">
<field name="sequence" eval="10"/>
<field name="view" ref="calendar_view_tree"/>
<field name="act_window" ref="act_calendar"/>
</record>
<record model="ir.action.act_window.view" id="act_calendar_form_view">
<field name="sequence" eval="20"/>
<field name="view" ref="calendar_view_form"/>
<field name="act_window" ref="act_calendar"/>
</record>
<record model="ir.model.access" id="access_calendar_admin">
<field name="model" search="[('model', '=', 'staff.calendar')]"/>
<field name="group" ref="group_workplace_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access" id="access_calendar">
<field name="model" search="[('model', '=', 'staff.calendar')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<!-- Calendar Day -->
<record model="ir.ui.view" id="day_view_calendar">
<field name="model">staff.calendar.day</field>
<field name="type">calendar</field>
<field name="name">day_calendar</field>
</record>
<record model="ir.ui.view" id="day_view_tree">
<field name="model">staff.calendar.day</field>
<field name="type">tree</field>
<field name="name">day_tree</field>
</record>
<record model="ir.ui.view" id="day_view_form">
<field name="model">staff.calendar.day</field>
<field name="type">form</field>
<field name="name">day_form</field>
</record>
<record model="ir.action.act_window" id="act_day">
<field name="name">Calendar Day</field>
<field name="res_model">staff.calendar.day</field>
</record>
<record model="ir.action.act_window.view" id="act_day_tree_view">
<field name="sequence" eval="10"/>
<field name="view" ref="day_view_calendar"/>
<field name="act_window" ref="act_day"/>
</record>
<record model="ir.action.act_window.view" id="day_view_calendar_view">
<field name="sequence" eval="20"/>
<field name="view" ref="day_view_form"/>
<field name="act_window" ref="act_day"/>
</record>
<record model="ir.model.access" id="access_calendar_day">
<field name="model" search="[('model', '=', 'staff.calendar.day')]"/>
<field name="group" ref="group_workplace_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access" id="access_day">
<field name="model" search="[('model', '=', 'staff.calendar.day')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<menuitem id="menu_calendar" name="Calendar" sequence="50"
parent="staff.menu_staff" action="act_calendar"/>
</data>
</tryton>