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 -->
2012-03-26 11:48:47 +00:00
2012-05-30 10:12:38 +00:00
<menuitem id= "payroll_configure" parent= "hr.menu_hr_configuration" name= "Payroll" groups= "base.group_hr_manager" sequence= "45" />
2012-03-05 12:42:45 +00:00
<menuitem id= "menu_hr_root_payroll" parent= "hr.menu_hr_root" name= "Payroll" sequence= "30" />
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 >
2012-06-08 09:40:50 +00:00
<xpath expr= "//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" />
2012-06-28 06:17:36 +00:00
<field name= "manager" />
<field name= "vehicle" />
<field name= "vehicle_distance" />
<field name= "medic_exam" string= "Medical Examination" />
2010-09-09 11:58:24 +00:00
</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 >
2012-07-04 16:29:10 +00:00
<xpath expr= "//field[@name='wage']" position= "after" >
<field name= "struct_id" required= "1" />
2011-03-03 12:49:03 +00:00
</xpath>
2012-06-08 09:40:50 +00:00
<xpath expr= "//field[@name='working_hours']" position= "after" >
2011-03-18 13:13:33 +00:00
<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 -->
2011-09-14 08:53:11 +00:00
<record id= "view_hr_payroll_structure_list_view" model= "ir.ui.view" >
2010-06-18 00:51:41 +00:00
<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-09-14 08:53:11 +00:00
<record id= "view_hr_payroll_structure_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= "field_parent" > children_ids</field>
<field name= "arch" type= "xml" >
2011-09-14 12:31:08 +00:00
<tree string= "Salary Structure" >
2011-09-14 08:53:11 +00:00
<field name= "name" />
<field name= "code" />
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
</tree>
</field>
</record>
2010-06-18 00:51:41 +00:00
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" >
2012-06-15 12:57:50 +00:00
<field name= "name" string= "Payroll Structures" filter_domain= "['|',('name','ilike',self),('code','ilike',self)]" />
2011-04-12 17:01:28 +00:00
</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" >
2012-06-21 13:25:01 +00:00
<form string= "Employee Function" version= "7.0" >
2012-06-07 17:30:07 +00:00
<group col= "4" >
<field name= "name" />
<field name= "code" />
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" >
2012-06-07 17:30:07 +00:00
<field name= "rule_ids" domain= "[('parent_rule_id','=',False)]" >
2011-04-08 10:10:59 +00:00
<tree >
<field name= "name" />
<field name= "code" />
<field name= "category_id" />
2012-04-25 14:11:35 +00:00
<field name= "sequence" invisible= "1" />
2011-04-08 10:10:59 +00:00
<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
2011-09-14 08:53:11 +00:00
<record id= "action_view_hr_payroll_structure_list_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>
2011-09-14 08:53:11 +00:00
<field name= "view_id" ref= "view_hr_payroll_structure_list_view" />
2010-06-18 00:51:41 +00:00
</record>
2010-08-03 06:41:46 +00:00
<menuitem
2011-09-14 08:53:11 +00:00
id="menu_hr_payroll_structure_view"
action="action_view_hr_payroll_structure_list_form"
2012-03-22 12:38:23 +00:00
parent="hr.menu_hr_configuration"
sequence="20"
2010-06-18 00:51:41 +00:00
/>
2011-09-14 08:53:11 +00:00
<record id= "action_view_hr_payroll_structure_tree" model= "ir.actions.act_window" >
2011-09-14 12:31:08 +00:00
<field name= "name" > Salary Structures Hierarchy</field>
2011-09-14 08:53:11 +00:00
<field name= "res_model" > hr.payroll.structure</field>
<field name= "view_type" > tree</field>
<field name= "domain" > [('parent_id','=',False)]</field>
<field name= "view_id" ref= "view_hr_payroll_structure_tree" />
</record>
<menuitem
id="menu_hr_payroll_structure_tree"
action="action_view_hr_payroll_structure_tree"
parent="payroll_configure"
sequence="2"
icon="STOCK_INDENT"
/>
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" />
2012-04-25 14:11:35 +00:00
<field name= "sequence" />
2010-06-06 16:29:11 +00:00
<field name= "name" />
<field name= "code" />
2012-01-05 08:13:25 +00:00
<field name= "quantity" />
<field name= "rate" />
2011-05-26 16:56:10 +00:00
<field name= "amount" />
2011-04-28 12:26:05 +00:00
<field name= "total" />
2011-06-29 11:11:22 +00:00
<field name= "amount_select" invisible= "1" />
<field name= "register_id" invisible= "1" />
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" >
2012-06-07 17:30:07 +00:00
<group >
<group >
<field name= "name" />
<field name= "code" />
<field name= "slip_id" />
2010-06-06 16:29:11 +00:00
<field name= "employee_id" />
2010-06-05 07:32:16 +00:00
</group>
2012-06-07 17:30:07 +00:00
<group 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')]}" />
2012-04-25 14:11:35 +00:00
<field name= "sequence" />
2010-06-05 07:32:16 +00:00
</group>
2012-06-07 17:30:07 +00:00
<field name= "note" />
</group>
2010-06-05 07:32:16 +00:00
</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" >
2012-06-15 12:57:50 +00:00
<field name= "name" string= "Payslip Lines" filter_domain= "['|',('name','ilike',self),('code','ilike',self)]" />
2012-06-13 12:41:57 +00:00
<separator orientation= "vertical" />
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..." >
2011-05-10 14:27:23 +00:00
<filter string= "Salary Rule Category" icon= "terp-camera_test" name= "category_id" context= "{'group_by':'category_id'}" />
2011-06-29 11:11:22 +00:00
<filter string= "Contribution Register" name= "register_id" icon= "terp-folder-yellow" context= "{'group_by':'register_id'}" />
2011-04-12 09:53:37 +00:00
<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>
2011-07-11 12:15:25 +00:00
<!-- payslip -->
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" >
2011-09-11 13:50:25 +00:00
<tree colors= "blue:state in ('confirm','hr_check','accont_check');black:state == 'new';gray:state == 'cancel'" string= "Payslips" >
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" />
2011-05-17 10:58:18 +00:00
<field name= "payslip_run_id" invisible= "1" />
2010-06-05 07:32:16 +00:00
</tree>
</field>
</record>
2012-06-21 13:25:01 +00:00
<act_window name= "Payslip Computation Details"
context="{'default_slip_id': active_id,'search_default_slip_id': active_id}"
res_model="hr.payslip.line"
src_model="hr.payslip"
id="act_payslip_lines"/>
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" >
2012-06-11 16:10:14 +00:00
<form string= "Payslip" version= "7.0" >
2012-06-04 12:11:39 +00:00
<header >
2012-06-20 10:12:05 +00:00
<button string= "Confirm" name= "hr_verify_sheet" states= "draft" class= "oe_highlight" />
2012-06-21 07:09:59 +00:00
<button string= "Refund" name= "refund_sheet" states= "confirm,done" type= 'object' />
2012-05-22 09:14:45 +00:00
<button string= "Set to Draft" name= "draft" states= "cancel" />
2012-06-20 10:12:05 +00:00
<button string= "Compute Sheet" name= "compute_sheet" type= "object" states= "draft" class= "oe_highlight" />
2012-05-22 09:14:45 +00:00
<button string= "Cancel" name= "cancel_sheet" states= "draft,hr_check,confirm,verify" />
2012-06-04 10:50:56 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "draft,confirm" />
2012-06-04 12:11:39 +00:00
</header>
2012-06-07 17:30:07 +00:00
<sheet >
2012-06-21 13:25:01 +00:00
<div class= "oe_right oe_button_box" >
<button name= "%(act_payslip_lines)d" string= "Payslip Computation Details" type= "action" />
</div>
2012-06-25 10:05:30 +00:00
<div class= "oe_title" >
<label for= "employee_id" class= "oe_edit_only" />
<h1 > <field name= "employee_id" on_change= "onchange_employee_id(date_from, date_to, employee_id, contract_id)" /> </h1>
<label for= "date_from" class= "oe_edit_only" string= "Period" />
<h2 >
From <field name= "date_from" on_change= "onchange_employee_id(date_from, date_to, employee_id, contract_id)" />
to <field name= "date_to" />
</h2>
</div>
2012-06-07 17:30:07 +00:00
<group col= "4" >
2012-04-25 14:11:35 +00:00
<field name= "contract_id" domain= "[('employee_id','=',employee_id)]" on_change= "onchange_contract_id(date_from, date_to, employee_id, contract_id)" />
2012-06-07 17:30:07 +00:00
<field name= "number" />
2012-04-25 14:11:35 +00:00
<field name= "struct_id" attrs= "{'required':[('contract_id','<>',False)]}" />
2012-06-07 17:30:07 +00:00
<field name= "name" />
2011-05-30 05:59:45 +00:00
<field name= "credit_note" />
2010-06-06 16:29:11 +00:00
</group>
2012-06-07 17:30:07 +00:00
<notebook >
2011-09-15 05:27:37 +00:00
<page string= "Worked Days & Inputs" >
2012-06-07 17:30:07 +00:00
<field name= "worked_days_line_ids" >
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" />
2012-04-25 14:11:35 +00:00
<field name= "contract_id" />
2011-04-04 11:32:19 +00:00
<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" >
2012-06-07 17:30:07 +00:00
<group col= "4" >
<field name= "name" />
<field name= "code" />
2011-05-10 11:19:31 +00:00
<field name= "payslip_id" />
2012-04-25 14:11:35 +00:00
<field name= "sequence" />
2011-05-10 11:19:31 +00:00
<field name= "number_of_days" />
<field name= "number_of_hours" />
2012-04-25 14:11:35 +00:00
<field name= "contract_id" />
2011-05-10 11:19:31 +00:00
</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" />
2011-05-24 06:02:02 +00:00
<field name= "amount" />
2012-04-25 14:11:35 +00:00
<field name= "contract_id" />
2011-05-09 08:50:02 +00:00
<field name= "sequence" invisible= "True" />
</tree>
2011-05-10 11:19:31 +00:00
<form string= "Payslip Line" >
2012-06-07 17:30:07 +00:00
<group col= "4" >
<field name= "name" />
<field name= "code" />
2011-05-10 11:19:31 +00:00
<field name= "payslip_id" />
2012-04-25 14:11:35 +00:00
<field name= "sequence" />
2011-05-24 06:02:02 +00:00
<field name= "amount" />
2012-04-25 14:11:35 +00:00
<field name= "contract_id" />
2011-05-10 11:19:31 +00:00
</group>
</form>
2011-04-01 11:25:11 +00:00
</field>
2011-09-15 05:27:37 +00:00
</page>
<page string= "Salary Computation" >
<field name= "line_ids" colspan= "4" nolabel= "1" >
<tree string= "Salary Structure" editable= "bottom" colors= "blue:total == 0" >
<field name= "name" />
<field name= "code" />
<field name= "category_id" />
<field name= "sequence" invisible= "1" />
2012-01-05 08:13:25 +00:00
<field name= "quantity" />
<field name= "rate" />
2011-09-15 05:27:37 +00:00
<field name= "amount" />
<field name= "total" />
</tree>
<form string= "Payslip Line" >
2012-06-07 17:30:07 +00:00
<group col= "4" >
<field name= "name" />
<field name= "code" />
2011-09-15 05:27:37 +00:00
<field name= "category_id" />
2012-04-25 14:11:35 +00:00
<field name= "sequence" />
2012-01-05 08:13:25 +00:00
<field name= "quantity" />
<field name= "rate" />
2011-09-15 05:27:37 +00:00
<field name= "amount" />
<field name= "total" />
2012-04-25 14:11:35 +00:00
<field name= "salary_rule_id" />
2011-09-15 05:27:37 +00:00
</group>
</form>
</field>
</page>
<page string= "Details By Salary Rule Category" >
2012-06-07 17:30:07 +00:00
<field name= "details_by_salary_rule_category" context= "{'group_by':'category_id'}" domain= "[('appears_on_payslip', '=', True)]" >
2011-09-15 05:27:37 +00:00
<tree string= "Payslip Lines" colors= "blue:total == 0" >
<field name= "category_id" />
<field name= "name" />
<field name= "code" />
<field name= "total" />
</tree>
</field>
2011-04-01 04:49:45 +00:00
</page>
2011-04-01 10:49:32 +00:00
<page string= "Other Information" >
2012-06-26 10:58:41 +00:00
<group >
<group >
<field name= "company_id" groups= "base.group_multi_company" />
<field name= "payslip_run_id" domain= "[('state','=','draft')]" />
<field name= "paid" readonly= "1" />
</group>
<group />
2012-06-08 09:40:50 +00:00
</group>
2012-06-26 10:58:41 +00:00
<div colspan= "4" >
<field name= "note" Placeholder= "Add an internal note..." />
</div>
2011-04-01 10:49:32 +00:00
</page>
2010-06-06 16:29:11 +00:00
</notebook>
2012-05-03 13:20:18 +00:00
</sheet>
2010-06-06 16:29:11 +00:00
</form>
</field>
</record>
2011-07-11 12:15:25 +00:00
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" >
2011-03-15 14:08:59 +00:00
<group >
2012-06-20 08:44:28 +00:00
<field name= "name" string= "Payslips" filter_domain= "['|',('name','ilike',self),('number','ilike',self)]" />
2012-06-13 12:41:57 +00:00
<separator orientation= "vertical" />
<field name= "date_from" />
<separator orientation= "vertical" />
2010-06-29 17:22:04 +00:00
<filter icon= "terp-document-new" string= "Draft" domain= "[('state','=','draft')]" help= "Draft Slip" />
2011-07-11 12:15:25 +00:00
<filter icon= "terp-camera_test" string= "Done" domain= "[('state','=','done')]" help= "Done Slip" />
2010-06-29 17:22:04 +00:00
<separator orientation= "vertical" />
2011-07-11 12:15:25 +00:00
<field name= "employee_id" />
2011-05-20 13:34:52 +00:00
<field name= "payslip_run_id" />
2010-06-29 17:22:04 +00:00
</group>
<newline />
2011-03-15 14:08:59 +00:00
<group 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" />
2011-11-08 23:00:27 +00:00
<filter string= "PaySlip Batch" name= "payslip_run_id" icon= "terp-folder-orange" context= "{'group_by':'payslip_run_id'}" />
2011-07-11 12:15:25 +00:00
<separator orientation= "vertical" groups= "base.group_multi_company" />
<filter string= "Companies" name= "company_id" groups= "base.group_multi_company" icon= "terp-go-home" context= "{'group_by':'company_id'}" />
2010-08-19 09:38:02 +00:00
<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" />
2012-06-21 06:56:08 +00:00
<act_window name= "Payslips"
context="{'search_default_employee_id': [active_id], 'default_employee_id': active_id}"
res_model="hr.payslip"
src_model="hr.employee"
view_id ="view_hr_payslip_tree"
id="act_hr_employee_payslip_list"
groups="base.group_hr_manager"/>
2010-08-03 06:41:46 +00:00
2012-06-21 06:56:08 +00:00
<!-- Employee View -->
<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" >
2012-06-22 12:23:00 +00:00
<data >
<xpath expr= "//div[@name='button_box']" position= "inside" >
<button name= "%(act_hr_employee_payslip_list)d" string= "Payslips" type= "action" />
</xpath>
<xpath expr= "//field[@name='parent_id']" position= "before" >
<field name= "manager" />
</xpath>
2012-06-28 13:12:10 +00:00
<xpath expr= "//group[@name='active_group']" position= "before" >
<group >
2012-07-05 06:58:45 +00:00
<field name= "vehicle" />
<field name= "vehicle_distance" />
</group>
2012-06-28 13:12:10 +00:00
</xpath>
2012-06-22 12:23:00 +00:00
<field name= "active" position= "before" >
<field name= "medic_exam" string= "Medical Examination" />
</field>
<field name= "birthday" position= "before" >
<field name= "children" />
</field>
<field name= "birthday" position= "after" >
<field name= "place_of_birth" />
</field>
<field name= "bank_account_id" position= "replace" >
<field name= "bank_account_id" context= "{'display_partner':True, 'partner_id':partner_id}" />
</field>
</data>
2012-06-21 06:56:08 +00:00
</field>
</record>
2011-05-10 14:27:23 +00:00
<!-- Salary Category -->
2011-05-11 07:18:54 +00:00
<record id= "hr_salary_rule_category_form" model= "ir.ui.view" >
<field name= "name" > hr.salary.rule.category.form</field>
<field name= "model" > hr.salary.rule.category</field>
2010-06-06 16:29:11 +00:00
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2011-05-10 14:27:23 +00:00
<form string= "Salary Categories" >
2012-06-07 17:30:07 +00:00
<group col= "4" >
<field name= "name" />
<field name= "code" />
<field name= "parent_id" />
2010-06-06 16:29:11 +00:00
</group>
2012-06-07 17:30:07 +00:00
<separator string= "Notes" />
<field name= "note" />
2010-06-06 16:29:11 +00:00
</form>
</field>
</record>
2011-05-03 09:12:02 +00:00
2011-05-11 07:18:54 +00:00
<record id= "hr_salary_rule_category_tree" model= "ir.ui.view" >
<field name= "name" > hr.salary.rule.category.tree</field>
<field name= "model" > hr.salary.rule.category</field>
2010-06-06 16:29:11 +00:00
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2011-05-10 14:27:23 +00:00
<tree string= "Salary Rule Categories" >
2010-06-06 16:29:11 +00:00
<field name= "name" />
<field name= "code" />
2011-05-03 09:12:02 +00:00
<field name= "parent_id" invisible= "1" />
2010-06-06 16:29:11 +00:00
</tree>
</field>
</record>
2011-09-14 08:53:11 +00:00
<record id= "hr_salary_rule_category_tree_view" model= "ir.ui.view" >
<field name= "name" > hr.salary.rule.category.tree.view</field>
<field name= "model" > hr.salary.rule.category</field>
<field name= "type" > tree</field>
<field name= "field_parent" > children_ids</field>
<field name= "arch" type= "xml" >
<tree string= "Salary Rule Categories" >
<field name= "name" />
<field name= "code" />
<field name= "parent_id" invisible= "1" />
</tree>
</field>
</record>
2010-06-30 06:03:59 +00:00
2011-05-11 07:18:54 +00:00
<record id= "view_hr_salary_rule_category_filter" model= "ir.ui.view" >
<field name= "name" > hr.salary.rule.category.select</field>
<field name= "model" > hr.salary.rule.category</field>
2010-06-30 06:03:59 +00:00
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
2011-05-10 14:27:23 +00:00
<search string= "Salary Rule Categories" >
2012-06-20 08:44:28 +00:00
<field name= "name" string= "Salary Rule Categories" filter_domain= "['|',('name','ilike',self),('code','ilike',self)]" />
2010-06-30 06:03:59 +00:00
</search>
</field>
</record>
2010-08-03 06:41:46 +00:00
2011-05-11 07:18:54 +00:00
<record id= "action_hr_salary_rule_category" model= "ir.actions.act_window" >
<field name= "name" > Salary Rule Categories</field>
<field name= "res_model" > hr.salary.rule.category</field>
2010-06-06 16:29:11 +00:00
<field name= "view_type" > form</field>
2011-05-11 07:18:54 +00:00
<field name= "view_id" ref= "hr_salary_rule_category_tree" />
<field name= "search_view_id" ref= "view_hr_salary_rule_category_filter" />
2010-06-06 16:29:11 +00:00
</record>
2010-08-03 06:41:46 +00:00
<menuitem
2011-05-11 07:18:54 +00:00
id="menu_hr_salary_rule_category"
action="action_hr_salary_rule_category"
2010-08-03 06:41:46 +00:00
parent="payroll_configure"
2011-03-07 07:18:29 +00:00
sequence="11"
2012-05-30 10:12:38 +00:00
groups="base.group_no_one"
2010-06-06 16:29:11 +00:00
/>
2011-09-14 08:53:11 +00:00
<record id= "action_hr_salary_rule_category_tree_view" model= "ir.actions.act_window" >
2011-09-14 12:31:08 +00:00
<field name= "name" > Salary Rule Categories Hierarchy</field>
2011-09-14 08:53:11 +00:00
<field name= "res_model" > hr.salary.rule.category</field>
<field name= "view_type" > tree</field>
2012-01-09 09:14:15 +00:00
<field name= "domain" > [('parent_id','=',False)]</field>
2011-09-14 08:53:11 +00:00
<field name= "view_id" ref= "hr_salary_rule_category_tree_view" />
</record>
<menuitem
id="menu_hr_salary_rule_category_tree_view"
action="action_hr_salary_rule_category_tree_view"
parent="payroll_configure"
sequence="12"
icon="STOCK_INDENT"
2012-05-30 10:12:38 +00:00
groups="base.group_no_one"
2011-09-14 08:53:11 +00:00
/>
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" >
2012-06-28 06:17:36 +00:00
<field name= "name" />
<field name= "company_id" 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" >
2012-06-22 10:29:59 +00:00
<field name= "name" string= "Contribution Registers" />
2012-06-13 12:41:57 +00:00
<separator orientation= "vertical" />
2011-04-12 17:01:28 +00:00
<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" >
2012-06-07 17:30:07 +00:00
<field name= "name" />
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
<separator string= "Description" />
<field name= "note" nolabel= "1" />
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-07-11 16:05:49 +00:00
<field name= "help" > A contribution register is a third party involved in the salary payment of the employees. It can be the social security, the estate or anyone that collect or inject money on payslips.</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
/>
2010-12-30 08:46:38 +00:00
2011-06-29 12:27:27 +00:00
<!-- Salary Rules -->
2011-03-14 08:45:55 +00:00
2011-09-15 12:40:55 +00:00
<record id= "hr_salary_rule_list" model= "ir.ui.view" >
2011-09-15 11:22:55 +00:00
<field name= "name" > hr.salary.rule.list</field>
2011-02-24 13:12:20 +00:00
<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" />
2012-04-25 14:11:35 +00:00
<field name= "sequence" invisible= "1" />
2011-04-08 10:10:59 +00:00
<field name= "register_id" />
2011-02-24 13:12:20 +00:00
</tree>
</field>
</record>
2011-09-15 11:22:55 +00:00
2011-09-15 12:40:55 +00:00
<record id= "hr_salary_rule_tree" model= "ir.ui.view" >
2011-09-15 11:22:55 +00:00
<field name= "name" > hr.salary.rule.tree</field>
<field name= "model" > hr.salary.rule</field>
<field name= "type" > tree</field>
<field name= "field_parent" > child_ids</field>
<field eval= "20" name= "priority" />
<field name= "arch" type= "xml" >
<tree string= "Salary Rules" >
<field name= "name" />
<field name= "code" />
<field name= "category_id" invisible= "True" />
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
</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" >
2012-06-11 16:10:14 +00:00
<form string= "Salary Rules" version= "7.0" >
2012-06-19 08:56:18 +00:00
<label for= "name" class= "oe_edit_only" />
2012-06-07 17:30:07 +00:00
<h1 > <field name= "name" /> </h1>
2012-06-19 08:56:18 +00:00
<label for= "category_id" class= "oe_edit_only" />
2012-06-07 17:30:07 +00:00
<h2 > <field name= "category_id" /> </h2>
<group col= "4" >
2012-06-28 12:18:20 +00:00
<field name= "code" />
2011-05-10 11:19:31 +00:00
<field name= "sequence" />
<field name= "active" />
2011-06-29 09:03:53 +00:00
<field name= "appears_on_payslip" />
2011-05-10 11:19:31 +00:00
<field name= "company_id" widget= "selection" groups= "base.group_multi_company" />
</group>
<notebook colspan= "6" >
<page string= "General" >
2012-06-07 17:30:07 +00:00
<group col= "4" >
<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')]}" /> <newline />
<field name= "condition_range_max" colspan= "2" attrs= "{'invisible':[('condition_select','<>','range')], 'required':[('condition_select','=','range')]}" /> <newline />
<separator colspan= "4" string= "Computation" />
<field name= "amount_select" /> <newline />
<field name= "amount_percentage_base" attrs= "{'invisible':[('amount_select','<>','percentage')], 'required': [('amount_select','=','percentage')]}" /> <newline />
<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')]}" /> <newline />
<field name= "amount_percentage" attrs= "{'invisible':[('amount_select','<>','percentage')], 'required':[('amount_select','=','percentage')]}" />
<field colspan= "4" name= "amount_python_compute" attrs= "{'invisible':[('amount_select','<>','code')], 'required':[('amount_select','=','code')]}" />
<separator colspan= "4" string= "Company Contribution" />
<field name= "register_id" />
</group>
2011-05-10 11:19:31 +00:00
</page>
<page string= "Child Rules" >
<field name= "parent_rule_id" />
2012-06-07 17:30:07 +00:00
<separator string= "Children Definition" />
<field name= "child_ids" />
2011-05-10 11:19:31 +00:00
</page>
<page string= "Inputs" >
2012-06-07 17:30:07 +00:00
<field name= "input_ids" mode= "tree, form" >
2011-05-10 11:19:31 +00:00
<tree string= "Input Data" editable= "bottom" >
<field name= "name" />
<field name= "code" />
</tree>
</field>
</page>
<page string= "Description" >
2012-06-07 17:30:07 +00:00
<field name= "note" />
2011-05-10 11:19:31 +00:00
</page>
</notebook>
</form>
</field>
</record>
2011-03-14 08:45:55 +00:00
2011-05-10 11:19:31 +00:00
<record id= "view_hr_rule_filter" model= "ir.ui.view" >
2011-05-11 10:17:33 +00:00
<field name= "name" > hr.salary.rule.select</field>
<field name= "model" > hr.salary.rule</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Salary Rule" >
2012-06-07 17:30:07 +00:00
<group col= "8" >
2012-06-20 08:44:28 +00:00
<field name= "name" string= "Salary Rules" filter_domain= "['|',('name','ilike',self),('code','ilike',self)]" />
2012-06-13 12:41:57 +00:00
<separator orientation= "vertical" />
2011-05-11 10:17:33 +00:00
<field name= "category_id" />
<field name= "condition_range_min" />
</group>
<newline />
<group col= "8" colspan= "4" expand= "0" string= "Group By..." >
2011-07-11 12:15:25 +00:00
<filter string= "Category" icon= "terp-folder-yellow" name= "head" context= "{'group_by':'category_id'}" />
2011-05-11 10:17:33 +00:00
</group>
</search>
</field>
2011-05-10 11:19:31 +00:00
</record>
2011-03-30 08:27:30 +00:00
2011-05-10 11:19:31 +00:00
<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>
2011-09-15 12:40:55 +00:00
<field name= "view_id" ref= "hr_salary_rule_list" />
2011-05-10 11:19:31 +00:00
<field name= "domain" > [('parent_rule_id','=',False)]</field>
<field name= "search_view_id" ref= "view_hr_rule_filter" />
</record>
2011-03-14 08:45:55 +00:00
2012-05-30 10:12:38 +00:00
<menuitem id= "menu_action_hr_salary_rule_form" action= "action_salary_rule_form" parent= "payroll_configure" sequence= "12" />
2011-02-25 13:07:26 +00:00
2011-07-11 12:15:25 +00:00
2011-10-10 13:19:07 +00:00
<act_window name= "All Children Rules"
domain="[('id', 'in', [active_id])]"
res_model="hr.salary.rule"
src_model="hr.salary.rule"
view_id="hr_salary_rule_tree"
view_type="tree"
id="act_children_salary_rules"/>
2011-07-11 12:15:25 +00:00
<!-- payslip runs -->
2011-06-29 12:27:27 +00:00
<record id= "hr_payslip_run_filter" model= "ir.ui.view" >
<field name= "name" > hr.payslip.run.search</field>
<field name= "model" > hr.payslip.run</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
2011-11-08 23:00:27 +00:00
<search string= "Search Payslip Batches" >
2012-06-22 10:29:59 +00:00
<field name= "name" string= "Payslip Batches" />
2011-07-11 12:15:25 +00:00
<separator orientation= "vertical" />
2011-05-18 05:01:48 +00:00
<field name= "date_start" />
<field name= "date_end" />
2012-06-13 12:41:57 +00:00
<separator orientation= "vertical" />
<filter icon= "terp-document-new" string= "Draft" domain= "[('state','=','draft')]" help= "Draft Payslip Batches" />
2012-06-22 10:29:59 +00:00
<filter name= "done_filter" icon= "terp-camera_test" string= "Done" domain= "[('state','=','close')]" help= "Done Payslip Batches" />
2011-06-29 12:27:27 +00:00
</search>
</field>
</record>
<record id= "hr_payslip_run_tree" model= "ir.ui.view" >
<field name= "name" > hr.payslip.run.tree</field>
<field name= "model" > hr.payslip.run</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2011-11-08 23:00:27 +00:00
<tree string= "Payslips Batches" >
2011-06-29 12:27:27 +00:00
<field name= "name" />
<field name= "date_start" />
<field name= "date_end" />
2011-07-11 12:15:25 +00:00
<field name= "credit_note" />
2011-09-15 05:16:36 +00:00
<field name= "state" />
2011-06-29 12:27:27 +00:00
</tree>
</field>
</record>
<record id= "hr_payslip_run_form" model= "ir.ui.view" >
<field name= "name" > hr.payslip.run.form</field>
<field name= "model" > hr.payslip.run</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2012-06-11 16:10:14 +00:00
<form string= "Payslips Batches" version= "7.0" >
2012-06-04 12:11:39 +00:00
<header >
2012-06-20 10:12:05 +00:00
<button name= "close_payslip_run" type= "object" string= "Close" states= "draft" class= "oe_highlight" />
<button name= "%(action_hr_payslip_by_employees)d" type= "action" states= "draft" string= "Generate Payslips" class= "oe_highlight" />
2012-06-21 07:09:59 +00:00
<button string= "Set to Draft" name= "draft_payslip_run" type= "object" states= "close" />
2012-06-04 10:50:56 +00:00
<field name= "state" widget= "statusbar" />
2012-06-04 12:11:39 +00:00
</header>
2012-06-07 17:30:07 +00:00
<sheet >
2012-06-21 13:25:01 +00:00
<label for= "name" class= "oe_edit_only" />
<h1 >
2012-06-07 17:30:07 +00:00
<field name= "name" />
2012-06-21 13:25:01 +00:00
</h1>
<h2 >
Period from
<field name= "date_start" />
to
2011-06-29 12:27:27 +00:00
<field name= "date_end" />
2012-06-21 13:25:01 +00:00
</h2>
<group col= "4" >
<field name= "credit_note" />
2011-06-29 12:27:27 +00:00
</group>
2012-06-07 17:30:07 +00:00
<field name= "slip_ids" />
</sheet>
2011-06-29 12:27:27 +00:00
</form>
</field>
</record>
<record id= "action_hr_payslip_run_tree" model= "ir.actions.act_window" >
2011-11-08 23:00:27 +00:00
<field name= "name" > Payslips Batches</field>
2011-06-29 12:27:27 +00:00
<field name= "res_model" > hr.payslip.run</field>
<field name= "view_type" > form</field>
<field name= "view_id" ref= "hr_payslip_run_tree" />
<field name= "search_view_id" ref= "hr_payslip_run_filter" />
</record>
<menuitem action= "action_hr_payslip_run_tree" id= "menu_hr_payslip_run" parent= "menu_hr_root_payroll" />
2011-05-04 05:50:23 +00:00
2011-07-11 12:15:25 +00:00
<!-- Shortcuts -->
<act_window name= "Payslips"
domain="[('employee_id', '=', active_id)]"
context="{'search_default_employee_id': [active_id], 'default_employee_id': active_id}"
res_model="hr.payslip"
src_model="hr.employee"
view_id ="view_hr_payslip_tree"
id="act_hr_employee_payslip_list"
groups="base.group_hr_manager"/>
2011-09-15 06:09:53 +00:00
<act_window name= "Payslip Computation Details"
2012-06-28 06:40:05 +00:00
domain="[('slip_id', '=', active_id)]"
context="{'default_slip_id': active_id}"
res_model="hr.payslip.line"
src_model="hr.payslip"
id="act_payslip_lines"/>
2011-07-11 12:15:25 +00:00
2011-09-15 06:34:46 +00:00
<act_window name= "Payslip Lines"
2012-06-28 06:40:05 +00:00
domain="[('register_id', '=', active_id)]"
context="{'default_register_id': active_id, 'search_default_register_id': 1}"
res_model="hr.payslip.line"
src_model="hr.contribution.register"
id="act_contribution_reg_payslip_lines"/>
2011-09-15 06:34:46 +00:00
2010-06-05 06:39:12 +00:00
</data>
</openerp>
2010-06-06 16:29:11 +00:00