trytonpsk-staff_payroll/payroll.xml
2021-07-16 10:28:06 -05:00

126 lines
5.9 KiB
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.action.report" id="report_staff_payroll">
<field name="name">Payroll</field>
<field name="model">staff.payroll</field>
<field name="report_name">staff.payroll</field>
<field name="report">staff_payroll/payroll.odt</field>
</record>
<record model="ir.action.keyword" id="report_staff_payroll_keyword">
<field name="keyword">form_print</field>
<field name="model">staff.payroll,-1</field>
<field name="action" ref="report_staff_payroll"/>
</record>
<record model="ir.ui.view" id="payroll_line_view_tree">
<field name="model">staff.payroll.line</field>
<field name="type">tree</field>
<field name="name">payroll_line_tree</field>
</record>
<record model="ir.ui.view" id="payroll_line_view_form">
<field name="model">staff.payroll.line</field>
<field name="type">form</field>
<field name="name">payroll_line_form</field>
</record>
<record model="ir.ui.view" id="payroll_view_form">
<field name="model">staff.payroll</field>
<field name="type">form</field>
<field name="name">payroll_form</field>
</record>
<record model="ir.ui.view" id="payroll_view_tree">
<field name="model">staff.payroll</field>
<field name="type">tree</field>
<field name="name">payroll_tree</field>
</record>
<record model="ir.action.act_window" id="act_payroll_form">
<field name="name">Payroll</field>
<field name="res_model">staff.payroll</field>
</record>
<record model="ir.action.act_window.view" id="act_payroll_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="payroll_view_tree"/>
<field name="act_window" ref="act_payroll_form"/>
</record>
<record model="ir.action.act_window.view" id="act_payroll_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="payroll_view_form"/>
<field name="act_window" ref="act_payroll_form"/>
</record>
<record model="ir.action.act_window.domain" id="act_payroll_form_domain_draft">
<field name="name">Draft</field>
<field name="sequence" eval="10"/>
<field name="domain" eval="[('state', '=', 'draft')]" pyson="1"/>
<field name="act_window" ref="act_payroll_form"/>
</record>
<record model="ir.action.act_window.domain" id="act_payroll_form_domain_processed">
<field name="name">Processed</field>
<field name="sequence" eval="20"/>
<field name="domain" eval="[('state', '=', 'processed')]" pyson="1"/>
<field name="act_window" ref="act_payroll_form"/>
</record>
<record model="ir.action.act_window.domain" id="act_payroll_form_domain_all">
<field name="name">All</field>
<field name="sequence" eval="20"/>
<field name="domain" eval="[]" pyson="1"/>
<field name="act_window" ref="act_payroll_form"/>
</record>
<menuitem name="Payroll" parent="staff.menu_staff"
sequence="3" id="menu_staff_payroll"
action="act_payroll_form"/>
<record model="ir.model.access" id="access_staff_payroll">
<field name="model" search="[('model', '=', 'staff.payroll')]"/>
<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>
<record model="ir.model.access" id="access_staff_payroll_admin">
<field name="model" search="[('model', '=', 'staff.payroll')]"/>
<field name="group" ref="staff.group_staff_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.ui.view" id="payroll_group_start_view_form">
<field name="model">staff.payroll_group.start</field>
<field name="type">form</field>
<field name="name">payroll_create_group_form</field>
</record>
<record model="ir.action.wizard" id="wizard_create_payroll_group">
<field name="name">Create Payroll Group</field>
<field name="wiz_name">staff.payroll_group</field>
</record>
<menuitem parent="staff.menu_assitants" id="menu_create_payroll_group"
sequence="10" action="wizard_create_payroll_group"/>
<record model="ir.action.wizard" id="act_payroll_preliquidation">
<field name="name">Preliquidation</field>
<field name="wiz_name">staff.payroll.preliquidation</field>
</record>
<record model="ir.action.keyword" id="act_payroll_preliquidation_keyword">
<field name="keyword">form_action</field>
<field name="model">staff.payroll,-1</field>
<field name="action" ref="act_payroll_preliquidation"/>
</record>
<record model="ir.action.wizard" id="act_payroll_recompute">
<field name="name">Recompute Payroll</field>
<field name="wiz_name">staff.payroll.recompute</field>
</record>
<record model="ir.action.keyword" id="act_payroll_recompute_keyword">
<field name="keyword">form_action</field>
<field name="model">staff.payroll,-1</field>
<field name="action" ref="act_payroll_recompute"/>
</record>
</data>
</tryton>