2010-06-06 16:29:11 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2010-06-05 06:39:12 +00:00
|
|
|
<openerp>
|
|
|
|
<data>
|
2010-06-06 18:26:08 +00:00
|
|
|
<!-- Root Menus -->
|
2010-10-08 12:48:15 +00:00
|
|
|
<menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll" sequence="9"/>
|
2010-12-28 15:34:17 +00:00
|
|
|
<menuitem id="payroll_configure" parent="hr.menu_hr_configuration" name="Payroll"/>
|
2010-08-13 13:36:45 +00:00
|
|
|
<menuitem id="menu_hr_payroll_reporting" parent="hr.menu_hr_reporting" name="Payroll" groups="base.group_hr_manager"/>
|
2010-07-01 05:48:09 +00:00
|
|
|
|
2010-06-07 13:26:59 +00:00
|
|
|
<!-- Employee View -->
|
2010-06-06 19:09:53 +00:00
|
|
|
<record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
|
|
|
|
<field name="name">hr.hr.employee.view.form2</field>
|
|
|
|
<field name="model">hr.employee</field>
|
|
|
|
<field name="inherit_id" ref="hr.view_employee_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2010-09-09 11:58:24 +00:00
|
|
|
<data>
|
|
|
|
<xpath expr="/form/notebook/page[@string='Personal Information']" position="after">
|
2010-12-30 17:08:00 +00:00
|
|
|
<page string="Miscellaneous" groups="base.group_hr_user">
|
2010-09-09 11:58:24 +00:00
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Personal Info" colspan="2"/>
|
2010-10-06 12:44:54 +00:00
|
|
|
<field name="bank_account_id" context="{'display_partner':True, 'partner_id':partner_id}"/>
|
2010-09-09 11:58:24 +00:00
|
|
|
<field name="place_of_birth"/>
|
|
|
|
<field name="children"/>
|
2011-04-07 11:08:44 +00:00
|
|
|
<!-- <field name="basic" invisible="0"/> -->
|
2010-09-09 11:58:24 +00:00
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Job Info" colspan="2"/>
|
|
|
|
<field name="manager" select="1"/>
|
|
|
|
<field name="vehicle" select="1"/>
|
|
|
|
<field name="vehicle_distance" select="1"/>
|
|
|
|
<field name="medic_exam" select="1" string="Medical Examination"/>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</xpath>
|
|
|
|
</data>
|
2010-06-06 19:09:53 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-07 13:26:59 +00:00
|
|
|
<!-- End Employee View -->
|
2010-12-09 04:50:11 +00:00
|
|
|
|
2010-06-07 13:26:59 +00:00
|
|
|
<!-- Contract View -->
|
2011-03-03 12:49:03 +00:00
|
|
|
<record id="hr_contract_form_inherit" model="ir.ui.view">
|
|
|
|
<field name="name">hr.contract.view.form.inherit</field>
|
2010-06-06 18:26:08 +00:00
|
|
|
<field name="model">hr.contract</field>
|
|
|
|
<field name="type">form</field>
|
2011-03-03 12:49:03 +00:00
|
|
|
<field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
|
2010-06-06 18:26:08 +00:00
|
|
|
<field name="arch" type="xml">
|
2011-03-03 12:49:03 +00:00
|
|
|
<data>
|
2011-03-07 08:45:15 +00:00
|
|
|
<xpath expr="/form/notebook/page/group/field[@name='advantages']" position="before">
|
2011-03-03 12:49:03 +00:00
|
|
|
<field name="struct_id" select="1"/>
|
|
|
|
</xpath>
|
2011-03-18 13:13:33 +00:00
|
|
|
<xpath expr="/form/notebook/page/group/field[@name='working_hours']" position="after">
|
|
|
|
<field name="schedule_pay"/>
|
|
|
|
</xpath>
|
2011-03-03 12:49:03 +00:00
|
|
|
</data>
|
2010-06-06 18:26:08 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2011-03-03 12:49:03 +00:00
|
|
|
|
2010-06-06 18:26:08 +00:00
|
|
|
<!-- End Contract View-->
|
2010-08-03 06:41:46 +00:00
|
|
|
|
2010-06-18 00:51:41 +00:00
|
|
|
<!-- Salary structure -->
|
|
|
|
<record id="view_hr_employee_grade_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payroll.structure.tree</field>
|
|
|
|
<field name="model">hr.payroll.structure</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Employee Function">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
2011-02-24 13:12:20 +00:00
|
|
|
<field name="rule_ids"/>
|
2010-10-06 12:44:54 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
2010-06-18 00:51:41 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2011-04-12 17:01:28 +00:00
|
|
|
<record id="view_hr_payroll_structure_filter" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payroll.structure.select</field>
|
|
|
|
<field name="model">hr.payroll.structure</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Payroll Structures">
|
|
|
|
<group col="8" colspan="4">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-06-18 00:51:41 +00:00
|
|
|
<record id="view_hr_employee_grade_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payroll.structure.form</field>
|
|
|
|
<field name="model">hr.payroll.structure</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Employee Function">
|
2011-03-07 07:18:29 +00:00
|
|
|
<group col="6" colspan="6">
|
|
|
|
<field name="name" select="1"/>
|
2010-06-18 00:51:41 +00:00
|
|
|
<field name="code" select="1"/>
|
2010-10-06 12:44:54 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
2011-03-07 07:18:29 +00:00
|
|
|
<field name="parent_id"/>
|
2010-06-18 00:51:41 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
2011-03-14 13:34:28 +00:00
|
|
|
<page string="Salary Rules">
|
2011-04-08 10:10:59 +00:00
|
|
|
<field colspan="4" name="rule_ids" nolabel="1" domain="[('parent_rule_id','=',False)]">
|
|
|
|
<tree>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
|
|
|
<field name="category_id"/>
|
|
|
|
<field name="sequence" groups="base.group_extended" invisible="1"/>
|
|
|
|
<field name="register_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2011-03-14 13:34:28 +00:00
|
|
|
</page>
|
2010-06-18 00:51:41 +00:00
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-08-03 06:41:46 +00:00
|
|
|
|
2010-06-18 00:51:41 +00:00
|
|
|
<record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
|
2011-03-07 11:28:17 +00:00
|
|
|
<field name="name">Salary Structures</field>
|
2010-06-18 00:51:41 +00:00
|
|
|
<field name="res_model">hr.payroll.structure</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="view_hr_employee_grade_tree"/>
|
|
|
|
</record>
|
2010-08-03 06:41:46 +00:00
|
|
|
<menuitem
|
|
|
|
id="menu_hr_employee_function"
|
|
|
|
action="action_view_hr_employee_grade_form"
|
|
|
|
parent="payroll_configure"
|
2011-03-07 07:18:29 +00:00
|
|
|
sequence="13"
|
2010-06-18 00:51:41 +00:00
|
|
|
/>
|
|
|
|
<!-- End Salary structure -->
|
2010-08-03 06:41:46 +00:00
|
|
|
|
2010-06-18 00:51:41 +00:00
|
|
|
<!-- Payslip Line -->
|
2010-06-06 16:29:11 +00:00
|
|
|
<record id="view_hr_payslip_line_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payslip.line.tree</field>
|
|
|
|
<field name="model">hr.payslip.line</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-04-25 09:41:42 +00:00
|
|
|
<tree string="Salary Structure" editable="bottom" colors="blue:total == 0">
|
2011-04-06 12:28:45 +00:00
|
|
|
<field name="category_id"/>
|
2011-04-12 09:53:37 +00:00
|
|
|
<field name="employee_id" invisible="1"/>
|
2010-10-08 13:18:45 +00:00
|
|
|
<field name="sequence" groups="base.group_extended"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
2011-04-28 12:26:05 +00:00
|
|
|
<field name="total"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_hr_payslip_line_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payslip.line.form</field>
|
|
|
|
<field name="model">hr.payslip.line</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Payslip Line">
|
2010-06-05 07:32:16 +00:00
|
|
|
<group col="6" colspan="4">
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="name" colspan="4" select="1"/>
|
|
|
|
<field name="code" select="1"/>
|
|
|
|
<field name="slip_id" select="1"/>
|
|
|
|
<field name="employee_id"/>
|
2010-06-05 07:32:16 +00:00
|
|
|
</group>
|
|
|
|
<group col="2" colspan="2">
|
2010-06-06 16:29:11 +00:00
|
|
|
<separator colspan="4" string="Calculations"/>
|
2011-04-06 12:28:45 +00:00
|
|
|
<field name="category_id"/>
|
2011-04-04 21:28:11 +00:00
|
|
|
<field name="amount_select"/>
|
|
|
|
<field name="amount_fix" attrs="{'readonly':[('amount_select','<>','fix')]}"/>
|
|
|
|
<field name="amount_percentage" attrs="{'readonly':[('amount_select','<>','percentage')]}"/>
|
2010-10-08 13:18:45 +00:00
|
|
|
<field name="sequence" groups="base.group_extended"/>
|
2010-06-05 07:32:16 +00:00
|
|
|
</group>
|
|
|
|
<group col="2" colspan="2">
|
2010-06-06 16:29:11 +00:00
|
|
|
<separator colspan="4" string="Company contribution"/>
|
|
|
|
<field name="company_contrib"/>
|
2010-06-05 07:32:16 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
2010-06-06 16:29:11 +00:00
|
|
|
<page string="Description">
|
|
|
|
<separator colspan="4" string="Description"/>
|
2010-06-05 07:32:16 +00:00
|
|
|
<field name="note" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-06 16:29:11 +00:00
|
|
|
|
2011-04-12 09:53:37 +00:00
|
|
|
<record id="view_hr_payslip_line_filter" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payslip.line.select</field>
|
|
|
|
<field name="model">hr.payslip.line</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Payslip Lines">
|
|
|
|
<group col="8" colspan="4">
|
2011-05-09 08:50:02 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
2011-04-12 09:53:37 +00:00
|
|
|
<field name="slip_id"/>
|
|
|
|
<field name="amount_select"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group col="8" colspan="4" expand="0" string="Group By...">
|
|
|
|
<filter string="Salary Head" icon="terp-camera_test" name="category_id" context="{'group_by':'category_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Amount Type" name="amount_select" icon="terp-stock_symbol-selection" context="{'group_by':'amount_select'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Employees" name="employee_id" icon="terp-personal" context="{'group_by':'employee_id'}"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2010-06-06 16:29:11 +00:00
|
|
|
<record id="view_hr_payslip_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payslip.tree</field>
|
|
|
|
<field name="model">hr.payslip</field>
|
2010-06-05 07:32:16 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-10-06 12:44:54 +00:00
|
|
|
<tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="number"/>
|
2010-06-05 07:32:16 +00:00
|
|
|
<field name="employee_id"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="name"/>
|
2011-04-05 16:46:17 +00:00
|
|
|
<field name="date_from"/>
|
|
|
|
<field name="date_to"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="state"/>
|
2010-10-06 12:44:54 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
2010-06-05 07:32:16 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-08-03 06:41:46 +00:00
|
|
|
|
2010-06-06 16:29:11 +00:00
|
|
|
<record id="view_hr_payslip_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payslip.form</field>
|
|
|
|
<field name="model">hr.payslip</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Payslip">
|
|
|
|
<group col="6" colspan="4">
|
2011-04-05 16:46:17 +00:00
|
|
|
<field name="employee_id" on_change="onchange_employee_id(date_from, date_to, employee_id, contract_id)"/>
|
2011-03-03 12:49:03 +00:00
|
|
|
<field name="number"/>
|
2011-04-05 16:46:17 +00:00
|
|
|
<field name="date_from"/>
|
|
|
|
<field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]" on_change="onchange_contract_id(date_from, date_to, employee_id, contract_id)"/>
|
2011-04-06 12:28:45 +00:00
|
|
|
<field name="struct_id" groups="base.group_extended" attrs="{'required':[('contract_id','<>',False)]}"/>
|
2011-04-05 16:46:17 +00:00
|
|
|
<field name="date_to"/>
|
2011-04-06 12:28:45 +00:00
|
|
|
<field name="name" colspan="4"/>
|
2011-04-11 12:10:46 +00:00
|
|
|
<field name="credit_note" readonly="1"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
2011-03-31 10:37:48 +00:00
|
|
|
<page string="Salary Computation" >
|
2011-04-12 17:01:28 +00:00
|
|
|
<field name="line_ids" colspan="4" nolabel="1">
|
2011-04-25 09:41:42 +00:00
|
|
|
<tree string="Salary Structure" editable="bottom" colors="blue:total == 0">
|
2010-06-18 00:51:41 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
2011-04-06 12:28:45 +00:00
|
|
|
<field name="category_id"/>
|
|
|
|
<field name="sequence" invisible="1"/>
|
2010-06-18 00:51:41 +00:00
|
|
|
<field name="total"/>
|
|
|
|
</tree>
|
2010-10-08 14:11:43 +00:00
|
|
|
<form string="Payslip Line">
|
2011-04-25 10:37:18 +00:00
|
|
|
<group>
|
2011-05-09 08:50:02 +00:00
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="code" select="1"/>
|
|
|
|
<field name="category_id"/>
|
|
|
|
<field name="sequence" groups="base.group_extended"/>
|
|
|
|
<field name="total"/>
|
|
|
|
<field name="salary_rule_id" groups="base.group_extended"/>
|
2010-10-08 14:11:43 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
2010-06-18 00:51:41 +00:00
|
|
|
</field>
|
2010-06-06 16:29:11 +00:00
|
|
|
</page>
|
2011-04-05 16:46:17 +00:00
|
|
|
<!-- TODO: put me back -->
|
2011-05-09 08:50:02 +00:00
|
|
|
<page string="Details By Salary Head">
|
2011-04-11 12:12:41 +00:00
|
|
|
<field name="details_by_salary_head" context="{'group_by':'category_id'}" domain="[('appears_on_payslip', '=', True)]" nolabel="1">
|
2011-04-25 10:25:44 +00:00
|
|
|
<tree string="Payslip Lines" colors="blue:total == 0">
|
2011-04-04 06:29:30 +00:00
|
|
|
<field name="category_id"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
2011-04-11 08:40:07 +00:00
|
|
|
<field name="total"/>
|
2011-04-04 06:29:30 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2011-04-11 08:40:07 +00:00
|
|
|
</page>
|
2011-04-05 11:55:28 +00:00
|
|
|
|
2011-04-06 12:28:45 +00:00
|
|
|
<page string="Worked Days">
|
2011-05-10 11:19:31 +00:00
|
|
|
<field name="worked_days_line_ids" colspan="4" nolabel="1">
|
2011-04-25 10:37:18 +00:00
|
|
|
<tree string="Worked Days" editable="bottom">
|
2011-04-04 06:29:30 +00:00
|
|
|
<field name="name"/>
|
2011-04-04 11:32:19 +00:00
|
|
|
<field name="code"/>
|
|
|
|
<field name="number_of_days" sum="Total Working Days"/>
|
|
|
|
<field name="number_of_hours"/>
|
|
|
|
<field name="contract_id" groups="base.group_extended"/>
|
|
|
|
<field name="sequence" invisible="True"/>
|
2011-04-04 06:29:30 +00:00
|
|
|
</tree>
|
2011-05-10 11:19:31 +00:00
|
|
|
<form string="Worked Day">
|
|
|
|
<group>
|
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="code" select="1"/>
|
|
|
|
<field name="payslip_id"/>
|
|
|
|
<field name="sequence" groups="base.group_extended"/>
|
|
|
|
<field name="number_of_days"/>
|
|
|
|
<field name="number_of_hours"/>
|
|
|
|
<field name="contract_id" groups="base.group_extended"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
2011-04-01 11:25:11 +00:00
|
|
|
</field>
|
2011-05-10 11:19:31 +00:00
|
|
|
<field name="input_line_ids" colspan="4" nolabel="1">
|
2011-05-09 08:50:02 +00:00
|
|
|
<tree string="Input Data" editable="bottom">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
|
|
|
<field name="quantity"/>
|
|
|
|
<field name="contract_id" groups="base.group_extended"/>
|
|
|
|
<field name="sequence" invisible="True"/>
|
|
|
|
</tree>
|
2011-05-10 11:19:31 +00:00
|
|
|
<form string="Payslip Line">
|
|
|
|
<group>
|
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="code" select="1"/>
|
|
|
|
<field name="payslip_id"/>
|
|
|
|
<field name="sequence" groups="base.group_extended"/>
|
|
|
|
<field name="quantity"/>
|
|
|
|
<field name="contract_id" groups="base.group_extended"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
2011-05-09 08:50:02 +00:00
|
|
|
</field>
|
2011-04-01 04:49:45 +00:00
|
|
|
</page>
|
|
|
|
|
2011-04-01 10:49:32 +00:00
|
|
|
<page string="Other Information">
|
|
|
|
<separator colspan="4" string="Other Information"/>
|
|
|
|
<group col="5" colspan="2">
|
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
|
|
|
<field name="paid" readonly="1"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</group>
|
2010-07-02 10:37:15 +00:00
|
|
|
<newline/>
|
2011-04-04 06:29:30 +00:00
|
|
|
<separator colspan="4" string="Notes"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="note" colspan="4" nolabel="1"/>
|
2011-04-01 10:49:32 +00:00
|
|
|
</page>
|
2011-03-25 13:20:10 +00:00
|
|
|
|
2010-06-06 16:29:11 +00:00
|
|
|
</notebook>
|
2010-06-29 17:22:04 +00:00
|
|
|
<group col="10" colspan="4">
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="state"/>
|
2010-09-23 10:00:36 +00:00
|
|
|
<button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
|
2011-04-05 16:46:17 +00:00
|
|
|
<button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
|
2010-06-29 17:31:59 +00:00
|
|
|
<button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
|
2010-07-14 06:01:49 +00:00
|
|
|
<button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
|
2010-06-29 17:31:59 +00:00
|
|
|
<button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
|
2011-04-08 09:38:29 +00:00
|
|
|
<button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="draft" states="cancel"/>
|
2011-04-11 12:10:46 +00:00
|
|
|
<button string="Refund" icon="gtk-execute" name="refund_sheet" states="confirm,done" type='object'/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-29 17:22:04 +00:00
|
|
|
<record id="view_hr_payslip_filter" model="ir.ui.view">
|
|
|
|
<field name="name">hr.payslip.select</field>
|
|
|
|
<field name="model">hr.payslip</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Payslips">
|
|
|
|
<group col="8" colspan="4">
|
|
|
|
<filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
|
|
|
|
<filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-08-19 09:38:02 +00:00
|
|
|
<filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-06-29 17:22:04 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="employee_id"/>
|
|
|
|
<field name="number"/>
|
2011-04-05 16:46:17 +00:00
|
|
|
<field name="date_from"/>
|
2010-06-29 17:22:04 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group col="8" colspan="4" expand="0" string="Group By...">
|
2010-08-19 09:38:02 +00:00
|
|
|
<filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-08-09 10:40:10 +00:00
|
|
|
<filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
|
2010-06-29 17:22:04 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
2010-08-03 06:41:46 +00:00
|
|
|
</record>
|
2010-06-06 16:29:11 +00:00
|
|
|
<record id="action_view_hr_payslip_form" model="ir.actions.act_window">
|
2011-03-07 11:28:17 +00:00
|
|
|
<field name="name">Employee Payslips</field>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="res_model">hr.payslip</field>
|
2010-06-05 07:32:16 +00:00
|
|
|
<field name="view_type">form</field>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="view_id" ref="view_hr_payslip_tree"/>
|
2010-06-29 17:22:04 +00:00
|
|
|
<field name="search_view_id" ref="view_hr_payslip_filter"/>
|
2010-06-05 07:32:16 +00:00
|
|
|
</record>
|
2010-06-06 16:29:11 +00:00
|
|
|
<menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
|
2010-08-03 06:41:46 +00:00
|
|
|
|
2010-06-09 14:38:22 +00:00
|
|
|
<!-- Payment Heads -->
|
2011-03-03 09:52:26 +00:00
|
|
|
<record id="hr_salary_head_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.salary.head.form</field>
|
|
|
|
<field name="model">hr.salary.head</field>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-06-18 00:51:41 +00:00
|
|
|
<form string="Salary Heads">
|
2011-03-03 09:52:26 +00:00
|
|
|
<group col="3" colspan="6">
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="code" select="1"/>
|
2011-04-04 11:32:19 +00:00
|
|
|
<field name="parent_id" select="1"/>
|
2011-04-01 11:32:11 +00:00
|
|
|
<field name="sequence" select="1"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</group>
|
2011-05-03 09:12:02 +00:00
|
|
|
<separator colspan="4" string="Notes"/>
|
2011-03-01 13:29:38 +00:00
|
|
|
<field name="note" colspan="4" nolabel="1"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-05-03 09:12:02 +00:00
|
|
|
|
2011-03-03 09:52:26 +00:00
|
|
|
<record id="hr_salary_head_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.salary.head.tree</field>
|
|
|
|
<field name="model">hr.salary.head</field>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-06-18 00:51:41 +00:00
|
|
|
<tree string="Salary Heads">
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
2011-05-03 09:12:02 +00:00
|
|
|
<field name="sequence"/>
|
|
|
|
<field name="parent_id" invisible="1"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-30 06:03:59 +00:00
|
|
|
|
2011-03-03 09:52:26 +00:00
|
|
|
<record id="view_hr_salary_head_filter" model="ir.ui.view">
|
|
|
|
<field name="name">hr.salary.head.select</field>
|
|
|
|
<field name="model">hr.salary.head</field>
|
2010-06-30 06:03:59 +00:00
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Salary Heads">
|
|
|
|
<field name="name" select="1"/>
|
2010-08-05 04:41:04 +00:00
|
|
|
<field name="code" select="1"/>
|
2010-06-30 06:03:59 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-08-03 06:41:46 +00:00
|
|
|
|
2011-03-03 09:52:26 +00:00
|
|
|
<record id="action_hr_salary_head" model="ir.actions.act_window">
|
2010-06-18 00:51:41 +00:00
|
|
|
<field name="name">Salary Heads</field>
|
2011-03-03 09:52:26 +00:00
|
|
|
<field name="res_model">hr.salary.head</field>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="view_type">form</field>
|
2011-03-03 09:52:26 +00:00
|
|
|
<field name="view_id" ref="hr_salary_head_tree"/>
|
|
|
|
<field name="search_view_id" ref="view_hr_salary_head_filter"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</record>
|
2010-08-03 06:41:46 +00:00
|
|
|
<menuitem
|
2011-03-03 09:52:26 +00:00
|
|
|
id="menu_hr_salary_head"
|
|
|
|
action="action_hr_salary_head"
|
2010-08-03 06:41:46 +00:00
|
|
|
parent="payroll_configure"
|
2011-03-07 07:18:29 +00:00
|
|
|
sequence="11"
|
2010-06-06 16:29:11 +00:00
|
|
|
/>
|
2010-06-09 14:54:48 +00:00
|
|
|
<!-- End Payment Heads -->
|
2010-08-03 06:41:46 +00:00
|
|
|
|
2010-06-06 18:26:08 +00:00
|
|
|
<!--
|
|
|
|
Contribution Register
|
|
|
|
-->
|
2011-04-12 17:01:28 +00:00
|
|
|
<record id="hr_contribution_register_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.contribution.register.tree</field>
|
|
|
|
<field name="model">hr.contribution.register</field>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-06-06 18:26:08 +00:00
|
|
|
<tree string="Contribution Registers">
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="name" select="1"/>
|
2010-10-06 12:44:54 +00:00
|
|
|
<field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-04-12 17:01:28 +00:00
|
|
|
<record id="hr_contribution_register_filter" model="ir.ui.view">
|
|
|
|
<field name="name">hr.contribution.register.search</field>
|
|
|
|
<field name="model">hr.contribution.register</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Contribution Registers">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="hr_contribution_register_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.contribution.register.form</field>
|
|
|
|
<field name="model">hr.contribution.register</field>
|
2010-06-06 18:26:08 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Contribution">
|
|
|
|
<field name="name" select="1"/>
|
2010-10-06 12:44:54 +00:00
|
|
|
<field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
|
2010-06-06 18:26:08 +00:00
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Description">
|
|
|
|
<separator colspan="4" string="Description"/>
|
|
|
|
<field name="note" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
2010-06-06 16:29:11 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-04-12 17:01:28 +00:00
|
|
|
<record id="action_contribution_register_form" model="ir.actions.act_window">
|
2011-03-07 11:28:17 +00:00
|
|
|
<field name="name">Contribution Registers</field>
|
2011-04-12 17:01:28 +00:00
|
|
|
<field name="res_model">hr.contribution.register</field>
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="view_type">form</field>
|
2011-04-12 17:01:28 +00:00
|
|
|
<field name="view_id" ref="hr_contribution_register_tree"/>
|
2010-06-06 16:29:11 +00:00
|
|
|
</record>
|
|
|
|
<menuitem
|
2011-04-12 17:01:28 +00:00
|
|
|
id="menu_action_hr_contribution_register_form"
|
|
|
|
action="action_contribution_register_form"
|
2010-08-03 06:41:46 +00:00
|
|
|
parent="payroll_configure"
|
2011-03-07 07:18:29 +00:00
|
|
|
sequence="14"
|
2010-06-05 07:32:16 +00:00
|
|
|
/>
|
2011-04-07 13:06:34 +00:00
|
|
|
<!-- <record id="hr_contibution_register_line_form" model="ir.ui.view">
|
2010-06-06 16:29:11 +00:00
|
|
|
<field name="name">hr.contibution.register.line.form</field>
|
|
|
|
<field name="model">hr.contibution.register.line</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Contribution">
|
2010-06-06 18:26:08 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
2010-08-03 06:41:46 +00:00
|
|
|
<field name="employee_id"/>
|
2010-06-06 18:26:08 +00:00
|
|
|
<field name="emp_deduction"/>
|
2010-08-03 06:41:46 +00:00
|
|
|
<field name="comp_deduction"/>
|
|
|
|
<field name="total"/>
|
2010-06-06 18:26:08 +00:00
|
|
|
</form>
|
2010-06-06 16:29:11 +00:00
|
|
|
</field>
|
2011-04-07 13:06:34 +00:00
|
|
|
</record> -->
|
2010-12-09 04:50:11 +00:00
|
|
|
|
2010-12-30 08:46:38 +00:00
|
|
|
|
|
|
|
|
2010-10-07 09:19:00 +00:00
|
|
|
<!-- Shortcuts -->
|
|
|
|
<act_window name="Payslips"
|
|
|
|
domain="[('employee_id', '=', active_id)]"
|
2011-01-27 09:49:39 +00:00
|
|
|
context="{'search_default_employee_id': [active_id], 'default_employee_id': active_id}"
|
2010-10-07 09:19:00 +00:00
|
|
|
res_model="hr.payslip"
|
|
|
|
src_model="hr.employee"
|
2010-12-01 13:19:09 +00:00
|
|
|
view_id ="view_hr_payslip_tree"
|
2010-12-30 08:46:38 +00:00
|
|
|
id="act_hr_employee_payslip_list"
|
|
|
|
groups="base.group_hr_manager"/>
|
|
|
|
|
2011-02-24 13:12:20 +00:00
|
|
|
<!-- Salary Rules -->
|
2011-03-14 08:45:55 +00:00
|
|
|
|
2011-05-10 11:19:31 +00:00
|
|
|
<record id="hr_salary_rule_tree" model="ir.ui.view">
|
2011-02-24 13:12:20 +00:00
|
|
|
<field name="name">hr.salary.rule.tree</field>
|
|
|
|
<field name="model">hr.salary.rule</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Salary Rules">
|
|
|
|
<field name="name"/>
|
2011-03-01 12:18:15 +00:00
|
|
|
<field name="code"/>
|
2011-04-08 10:10:59 +00:00
|
|
|
<field name="category_id"/>
|
|
|
|
<field name="sequence" groups="base.group_extended" invisible="1"/>
|
|
|
|
<field name="register_id"/>
|
2011-02-24 13:12:20 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-05-10 11:19:31 +00:00
|
|
|
<record id="hr_salary_rule_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.salary.rule.form</field>
|
|
|
|
<field name="model">hr.salary.rule</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Salary Rules">
|
|
|
|
<group col="6" colspan="6">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="code" select="1"/>
|
|
|
|
<field name="category_id"/>
|
|
|
|
<field name="sequence" />
|
|
|
|
<field name="active"/>
|
|
|
|
<field name="appears_on_payslip" attrs="{'readonly':[('company_contribution','=', True)]}" />
|
|
|
|
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="6">
|
|
|
|
<page string="General">
|
|
|
|
<group col="4" colspan="6">
|
|
|
|
<separator colspan="4" string="Conditions"/>
|
|
|
|
<field name="condition_select"/><newline/>
|
|
|
|
<field name="condition_python" attrs="{'invisible':[('condition_select','<>','python')], 'required': [('condition_select','=','python')]}" colspan="4"/> <newline/>
|
|
|
|
<field name="condition_range" attrs="{'invisible':[('condition_select','<>','range')], 'required':[('condition_select','=','range')]}"/><newline/>
|
|
|
|
<field name="condition_range_min" colspan="2" attrs="{'invisible':[('condition_select','<>','range')], 'required':[('condition_select','=','range')]}"/>
|
|
|
|
<field name="condition_range_max" colspan="2" attrs="{'invisible':[('condition_select','<>','range')], 'required':[('condition_select','=','range')]}"/>
|
|
|
|
<separator colspan="4" string="Computation"/>
|
|
|
|
<field name="amount_select"/>
|
|
|
|
<field name="quantity" attrs="{'invisible':[('amount_select','=','code')], 'required':[('amount_select','!=','code')]}"/><newline/>
|
|
|
|
<field name="amount_fix" attrs="{'invisible':[('amount_select','<>','fix')], 'required':[('amount_select','=','fix')]}"/>
|
|
|
|
<field colspan="4" name="amount_python_compute" attrs="{'invisible':[('amount_select','<>','code')], 'required':[('amount_select','=','code')]}"/>
|
|
|
|
<field name="amount_percentage_base" attrs="{'invisible':[('amount_select','<>','percentage')], 'required': [('amount_select','=','percentage')]}"/>
|
|
|
|
<field name="amount_percentage" attrs="{'invisible':[('amount_select','<>','percentage')], 'required':[('amount_select','=','percentage')]}"/>
|
|
|
|
<separator colspan="4" string="Company contribution"/>
|
|
|
|
<field name="register_id"/>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
<page string="Child Rules">
|
|
|
|
<field name="parent_rule_id"/>
|
|
|
|
<separator colspan="4" string="Children definition"/>
|
|
|
|
<field colspan="4" name="child_ids" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
<page string="Inputs">
|
|
|
|
<field name="input_ids" colspan="4" nolabel="1" mode="tree, form">
|
|
|
|
<tree string="Input Data" editable="bottom">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="code"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
<page string="Description">
|
|
|
|
<field name="note" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_hr_rule_filter" model="ir.ui.view">
|
|
|
|
<field name="name">hr.salary.rule.select</field>
|
2011-02-24 13:12:20 +00:00
|
|
|
<field name="model">hr.salary.rule</field>
|
2011-05-10 11:19:31 +00:00
|
|
|
<field name="type">search</field>
|
2011-02-24 13:12:20 +00:00
|
|
|
<field name="arch" type="xml">
|
2011-05-10 11:19:31 +00:00
|
|
|
<search string="Search Salary Rule">
|
|
|
|
<group col="8" colspan="4">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="code" select="1"/>
|
|
|
|
<field name="category_id"/>
|
|
|
|
<field name="condition_range_min"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group col="8" colspan="4" expand="0" string="Group By...">
|
|
|
|
<filter string="Head" icon="terp-folder-yellow" name="head" context="{'group_by':'category_id'}"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
2011-02-24 13:12:20 +00:00
|
|
|
</field>
|
2011-05-10 11:19:31 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_salary_rule_form" model="ir.actions.act_window">
|
|
|
|
<field name="name">Salary Rules</field>
|
|
|
|
<field name="res_model">hr.salary.rule</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="hr_salary_rule_tree"/>
|
|
|
|
<field name="domain">[('parent_rule_id','=',False)]</field>
|
|
|
|
<field name="search_view_id" ref="view_hr_rule_filter"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem id="menu_action_hr_salary_rule_form" action="action_salary_rule_form" parent="payroll_configure" sequence="12"/>
|
|
|
|
|
|
|
|
<act_window domain="[('slip_id', '=', active_id)]" id="act_payslip_lines" name="Payslip Lines" res_model="hr.payslip.line" src_model="hr.payslip"/>
|
|
|
|
|
|
|
|
<record id="hr_contribution_register_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.contribution.register.form</field>
|
|
|
|
<field name="model">hr.contribution.register</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Contribution">
|
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Description">
|
|
|
|
<separator colspan="4" string="Description"/>
|
|
|
|
<field name="note" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-04-12 09:53:37 +00:00
|
|
|
|
2010-06-05 06:39:12 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|
2010-06-06 16:29:11 +00:00
|
|
|
|