1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll" groups="base.group_system,group_hr_payroll" sequence="9"/>
6 <menuitem id="payroll_configure" parent="hr.menu_hr_configuration" name="Payroll" groups="base.group_system"/>
7 <menuitem id="menu_hr_payroll_reporting" parent="hr.menu_hr_reporting" name="Payroll" groups="base.group_hr_manager"/>
9 <!-- Passport Views -->
10 <record id="hr_passport_form" model="ir.ui.view">
11 <field name="name">hr.passport.form</field>
12 <field name="model">hr.passport</field>
13 <field name="type">form</field>
14 <field name="arch" type="xml">
15 <form string="Passport">
16 <group col="6" colspan="4">
17 <field name="name" select="1" colspan="4"/>
18 <field name="employee_id" />
20 <group col="2" colspan="2">
21 <separator string="Country & Address" colspan="4"/>
22 <field name="country_id" select="1"/>
23 <field name="address_id" select="1"/>
25 <group col="2" colspan="2">
26 <separator string="Valid From" colspan="2"/>
27 <field name="date_issue" select="1"/>
28 <field name="date_expire" select="1"/>
30 <notebook colspan="4">
31 <page string="Description">
32 <separator string="Description" colspan="2"/>
33 <field name="note" colspan="4" nolabel="1"/>
35 <page string="Contracts" groups="base.group_extended">
36 <field name="contracts_ids" colspan="4" nolabel="1"/>
42 <record id="hr_passport_tree" model="ir.ui.view">
43 <field name="name">hr.passport.tree</field>
44 <field name="model">hr.passport</field>
45 <field name="type">tree</field>
46 <field name="arch" type="xml">
47 <tree string="Passport">
49 <field name="employee_id" />
50 <field name="address_id"/>
51 <field name="country_id" />
52 <field name="date_expire"/>
53 <field name="date_issue" />
58 <record id="view_hr_passport_filter" model="ir.ui.view">
59 <field name="name">hr.passport.select</field>
60 <field name="model">hr.passport</field>
61 <field name="type">search</field>
62 <field name="arch" type="xml">
63 <search string="Search Passport">
64 <group col="8" colspan="4">
66 <field name="employee_id"/>
67 <field name="country_id"/>
68 <field name="address_id"/>
71 <group col="8" colspan="4" expand="0" string="Group By...">
72 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
73 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
74 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
75 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
80 <record id="action_hr_passport_tree" model="ir.actions.act_window">
81 <field name="name">All Passports</field>
82 <field name="res_model">hr.passport</field>
83 <field name="view_type">form</field>
84 <field name="view_id" ref="hr_passport_tree"/>
85 <field name="search_view_id" ref="view_hr_passport_filter"/>
87 <!-- End Passport Views -->
89 <!-- Employee View -->
91 <record id="view_employee_bank_form" model="ir.ui.view">
92 <field name="name">res.partner.bank.form</field>
93 <field name="model">res.partner.bank</field>
94 <field name="type">form</field>
95 <field name="inherit_id" ref="base.view_partner_bank_form"/>
96 <field name="arch" type="xml">
97 <field name="partner_id" position="replace">
98 <field name="partner_id" invisible="context.get('display_partner', False)"/>
103 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
104 <field name="name">hr.hr.employee.view.form2</field>
105 <field name="model">hr.employee</field>
106 <field name="inherit_id" ref="hr.view_employee_form"/>
107 <field name="arch" type="xml">
109 <xpath expr="/form/notebook/page[@string='Personal Information']" position="after">
110 <page string="Miscellaneous">
111 <group colspan="2" col="2">
112 <separator string="Personal Info" colspan="2"/>
113 <field name="bank_account_id" context="{'display_partner':True, 'partner_id':partner_id}"/>
114 <field name="place_of_birth"/>
115 <field name="children"/>
117 <group colspan="2" col="2">
118 <separator string="Job Info" colspan="2"/>
119 <field name="manager" select="1"/>
120 <field name="vehicle" select="1"/>
121 <field name="vehicle_distance" select="1"/>
122 <field name="medic_exam" select="1" string="Medical Examination"/>
125 <page string="Contracts" groups="base.group_extended">
126 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
127 <tree string="Contracts">
129 <field name="job_id"/>
130 <field name="date_start"/>
131 <field name="date_end"/>
132 <field name="working_hours"/>
133 <field name="wage_type_id"/>
136 <form string="Contracts">
137 <group colspan="4" col="6">
138 <field name="name" select="1"/>
139 <field name="job_id"/>
142 <field name="wage_type_id" widget="selection"/>
143 <field name="type_id" widget="selection"/>
145 <notebook colspan="4">
146 <page string="Contract Details">
147 <group col="2" colspan="2">
148 <separator colspan="2" string="Duration"/>
149 <field name="date_start" select="1"/>
150 <field name="date_end" select="1"/>
151 <field name="working_hours"/>
153 <group col="2" colspan="2">
154 <separator colspan="2" string="Advantages"/>
155 <field name="struct_id" select="1"/>
156 <field name="advantages_net"/>
157 <field name="advantages_gross"/>
158 <field name="advantages" nolabel="1" colspan="2"/>
162 <page string="Work Permit">
163 <group col="2" colspan="2">
164 <separator colspan="2" string="Passport"/>
165 <field name="passport_id" domain="[('employee_id','=',parent.id)]"/>
167 <group col="2" colspan="2">
168 <separator colspan="2" string="Valid for"/>
169 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
170 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
171 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
174 <separator colspan="4" string="Notes"/>
175 <field colspan="4" name="notes" nolabel="1"/>
181 <xpath expr="/form/notebook/page[@string='Notes']" position="before">
182 <page string="Salary Structure" groups="base.group_extended">
183 <group col="10" colspan="4">
184 <separator string="Salary Computation" colspan="10"/>
185 <field name="basic"/>
186 <field name="advantages_gross"/>
187 <field name="gross"/>
188 <field name="advantages_net"/>
191 <separator string="Employee specific allowances and deductions" colspan="4"/>
192 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
193 <tree string="Salary Structure" editable="bottom">
194 <field name="category_id" on_change="onchange_category(category_id)"/>
195 <field name="sequence"/>
199 <field name="amount_type"/>
200 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
209 <record id="view_employee_passport_form" model="ir.ui.view">
210 <field name="name">hr.employee.passport.form</field>
211 <field name="model">hr.employee</field>
212 <field name="type">form</field>
213 <field name="inherit_id" ref="hr.view_employee_form"/>
214 <field name="arch" type="xml">
215 <field name="passport_id" position="replace">
216 <field name="passport_id"/>
217 <field name="otherid"/>
222 <!-- End Employee View -->
224 <!-- Contract View -->
225 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
226 <field name="name">hr.contract.view.form</field>
227 <field name="model">hr.contract</field>
228 <field name="type">form</field>
229 <field name="arch" type="xml">
230 <form string="Contract">
231 <group colspan="4" col="6">
232 <field name="name" select="1"/>
233 <field name="employee_id" select="1"/>
234 <field name="job_id"/>
236 <field name="wage_type_id" widget="selection"/>
237 <field name="type_id" widget="selection"/>
239 <notebook colspan="4">
240 <page string="Main Data">
241 <group col="2" colspan="2">
242 <separator colspan="2" string="Duration"/>
243 <field name="date_start" select="1"/>
244 <field name="date_end" select="1"/>
245 <field name="working_hours"/>
246 <field name="working_days_per_week" select="1"/>
247 <separator colspan="2" string="Trial Period"/>
248 <field name="trial_date_start" />
249 <field name="trial_date_end" />
251 <group col="2" colspan="2">
252 <separator colspan="2" string="Advantages"/>
253 <field name="struct_id" select="1"/>
254 <field name="advantages_gross"/>
255 <field name="advantages_net"/>
256 <field name="advantages" nolabel="1" colspan="2"/>
259 <page string="Work Permit">
260 <group col="2" colspan="2">
261 <separator colspan="2" string="Passport"/>
262 <field name="passport_id" domain="[('employee_id','=',employee_id)]"/>
264 <group col="2" colspan="2">
265 <separator colspan="2" string="Valid for"/>
266 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
267 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
268 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
272 <separator colspan="4" string="Notes"/>
273 <field colspan="4" name="notes" nolabel="1"/>
277 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
278 <!-- End Contract View-->
280 <!-- Salary structure -->
281 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
282 <field name="name">hr.payroll.structure.tree</field>
283 <field name="model">hr.payroll.structure</field>
284 <field name="type">tree</field>
285 <field name="arch" type="xml">
286 <tree string="Employee Function">
289 <field name="line_ids"/>
290 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
295 <record id="view_hr_employee_grade_form" model="ir.ui.view">
296 <field name="name">hr.payroll.structure.form</field>
297 <field name="model">hr.payroll.structure</field>
298 <field name="type">form</field>
299 <field name="arch" type="xml">
300 <form string="Employee Function">
301 <group col="6" colspan="4">
302 <field name="name" colspan="4" select="1"/>
303 <field name="code" select="1"/>
304 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
306 <notebook colspan="4">
307 <page string="Salary Structure">
308 <field name="line_ids" nolabel="1" colspan="4"/>
315 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
316 <field name="name">Salary Structure</field>
317 <field name="res_model">hr.payroll.structure</field>
318 <field name="view_type">form</field>
319 <field name="view_id" ref="view_hr_employee_grade_tree"/>
322 id="menu_hr_employee_function"
323 action="action_view_hr_employee_grade_form"
324 parent="payroll_configure"
326 <!-- End Salary structure -->
328 <!-- Holiday Status -->
329 <record model="ir.ui.view" id="view_holiday_status_form1">
330 <field name="name">hr.holidays.status.inherit</field>
331 <field name="model">hr.holidays.status</field>
332 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
333 <field name="type">form</field>
334 <field name="arch" type="xml">
335 <field name="double_validation" position="replace">
336 <group col="2" colspan="2">
337 <separator colspan="4" string="Payroll Configurtion"/>
339 <field name="head_id"/>
340 <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/>
341 <field name="code" readonly="True"/>
343 <group col="2" colspan="2">
344 <separator colspan="4" string="Validation"/>
345 <field name="double_validation"/>
350 <!-- End Holiday Status -->
352 <!-- Payslip Line -->
353 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
354 <field name="name">hr.payslip.line.tree</field>
355 <field name="model">hr.payslip.line</field>
356 <field name="type">tree</field>
357 <field name="arch" type="xml">
358 <tree string="Salary Structure" editable="bottom">
359 <field name="category_id" on_change="onchange_category(category_id)"/>
360 <field name="sequence"/>
364 <field name="amount_type"/>
365 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
369 <record id="view_hr_payslip_line_form" model="ir.ui.view">
370 <field name="name">hr.payslip.line.form</field>
371 <field name="model">hr.payslip.line</field>
372 <field name="type">form</field>
373 <field name="arch" type="xml">
374 <form string="Payslip Line">
375 <group col="6" colspan="4">
376 <field name="name" colspan="4" select="1"/>
377 <field name="code" select="1"/>
378 <field name="slip_id" select="1"/>
379 <field name="employee_id"/>
380 <field name="function_id"/>
382 <group col="2" colspan="2">
383 <separator colspan="4" string="Calculations"/>
384 <field name="category_id" on_change="onchange_category(category_id)"/>
386 <field name="amount_type"/>
387 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
388 <field name="sequence"/>
390 <group col="2" colspan="2">
391 <separator colspan="4" string="Company contribution"/>
392 <field name="company_contrib"/>
394 <notebook colspan="4">
395 <page string="Function">
396 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
397 <tree string="Function Arguments" editable="bottom">
399 <field name="sequence"/>
400 <field name="from_val"/>
401 <field name="to_val"/>
402 <field name="amount_type"/>
403 <field name="value"/>
407 <page string="Description">
408 <separator colspan="4" string="Description"/>
409 <field name="note" colspan="4" nolabel="1"/>
416 <record id="view_hr_payslip_tree" model="ir.ui.view">
417 <field name="name">hr.payslip.tree</field>
418 <field name="model">hr.payslip</field>
419 <field name="type">tree</field>
420 <field name="arch" type="xml">
421 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
422 <field name="number"/>
423 <field name="employee_id"/>
424 <field name="register_id" invisible="1"/>
427 <field name="grows"/>
429 <field name="state"/>
430 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
435 <record id="view_hr_payslip_form" model="ir.ui.view">
436 <field name="name">hr.payslip.form</field>
437 <field name="model">hr.payslip</field>
438 <field name="type">form</field>
439 <field name="arch" type="xml">
440 <form string="Payslip">
441 <group col="6" colspan="4">
442 <field name="employee_id"/>
444 <field name="number" select="1"/>
447 <notebook colspan="4">
448 <page string="Salary Computation">
449 <field name="line_ids" colspan="4" nolabel="1">
450 <tree string="Salary Structure" editable="bottom">
451 <field name="category_id" on_change="onchange_category(category_id)"/>
452 <field name="sequence"/>
456 <field name="amount_type"/>
457 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
458 <field name="total"/>
461 <group col="6" colspan="4">
462 <separator string="Computation Overview" colspan="6"/>
463 <field name="working_days"/>
464 <field name="holiday_days"/>
465 <field name="worked_days"/>
466 <field name="basic_before_leaves"/>
467 <field name="leaves"/>
468 <field name="basic"/>
469 <field name="allounce"/>
470 <field name="deduction"/>
471 <field name="other_pay"/>
472 <field name="grows"/>
474 <field name="total_pay"/>
477 <page string="Other Informations">
478 <group col="2" colspan="1">
479 <separator colspan="2" string="Other Informations"/>
480 <field name="paid" readonly="1"/>
481 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
482 <field name="register_id" groups="base.group_extended"/>
483 <field name="deg_id" groups="base.group_extended"/>
484 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
487 <separator colspan="4" string="Description"/>
488 <field name="note" colspan="4" nolabel="1"/>
491 <group col="10" colspan="4">
492 <field name="state"/>
493 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
494 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
495 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
496 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
497 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
498 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
499 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
504 <record id="view_hr_payslip_filter" model="ir.ui.view">
505 <field name="name">hr.payslip.select</field>
506 <field name="model">hr.payslip</field>
507 <field name="type">search</field>
508 <field name="arch" type="xml">
509 <search string="Search Payslips">
510 <group col="8" colspan="4">
511 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
512 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
513 <separator orientation="vertical"/>
514 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
515 <separator orientation="vertical"/>
517 <field name="employee_id"/>
518 <field name="number"/>
522 <group col="8" colspan="4" expand="0" string="Group By...">
523 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
524 <separator orientation="vertical"/>
525 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
526 <separator orientation="vertical"/>
527 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
528 <separator orientation="vertical"/>
529 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
534 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
535 <field name="name">Employee Payslip</field>
536 <field name="res_model">hr.payslip</field>
537 <field name="view_type">form</field>
538 <field name="view_id" ref="view_hr_payslip_tree"/>
539 <field name="search_view_id" ref="view_hr_payslip_filter"/>
541 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
543 <!-- Payment Heads -->
544 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
545 <field name="name">hr.allounce.deduction.categoty.form</field>
546 <field name="model">hr.allounce.deduction.categoty</field>
547 <field name="type">form</field>
548 <field name="arch" type="xml">
549 <form string="Salary Heads">
550 <group col="6" colspan="6">
551 <field name="name" select="1"/>
552 <field name="code" select="1"/>
553 <field name="type" select="1"/>
554 <group col="2" colspan="4">
555 <separator colspan="4" string="Based on"/>
556 <field name="base" colspan="4" nolabel="1"/>
558 <group col="2" colspan="2">
559 <separator colspan="4" string="Dynamic Computation"/>
560 <field name="condition"/>
561 <field name="sequence"/>
564 <notebook colspan="4">
565 <page string="Description">
566 <field name="note" colspan="4" nolabel="1"/>
568 <page string="Contribution">
569 <field name="contribute_ids" colspan="4" nolabel="1" height="300">
570 <form string="Company Contribution">
571 <group col="6" colspan="6">
572 <field name="name" select="1"/>
573 <field name="code" select="1"/>
575 <group col="2" colspan="2">
576 <separator colspan="2" string="Contributions"/>
577 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
578 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
579 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
581 <group col="2" colspan="2">
582 <separator colspan="2" string="Other Information"/>
583 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
584 <field name="active" select="1"/>
586 <notebook colspan="4">
587 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
588 <field name="line_ids" colspan="4" nolabel="1">
589 <tree string="Function Arguments" editable="bottom">
591 <field name="sequence"/>
592 <field name="from_val"/>
593 <field name="to_val"/>
594 <field name="amount_type"/>
595 <field name="value"/>
599 <page string="Description">
600 <field name="note" colspan="4" nolabel="1"/>
610 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
611 <field name="name">hr.allounce.deduction.categoty.tree</field>
612 <field name="model">hr.allounce.deduction.categoty</field>
613 <field name="type">tree</field>
614 <field name="arch" type="xml">
615 <tree string="Salary Heads">
620 <field name="condition"/>
621 <field name="sequence"/>
626 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
627 <field name="name">hr.allounce.deduction.categoty.select</field>
628 <field name="model">hr.allounce.deduction.categoty</field>
629 <field name="type">search</field>
630 <field name="arch" type="xml">
631 <search string="Salary Heads">
632 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
633 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
634 <separator orientation="vertical"/>
635 <field name="name" select="1"/>
636 <field name="code" select="1"/>
639 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
640 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
641 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
647 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
648 <field name="name">Salary Heads</field>
649 <field name="res_model">hr.allounce.deduction.categoty</field>
650 <field name="view_type">form</field>
651 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
652 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
655 id="menu_hr_allounce_deduction_tree"
656 action="hr_allounce_deduction_tree"
657 parent="payroll_configure"
659 <!-- End Payment Heads -->
661 <!-- Company Contribution -->
662 <record id="hr_company_contribution_form" model="ir.ui.view">
663 <field name="name">company.contribution.form</field>
664 <field name="model">company.contribution</field>
665 <field name="type">form</field>
666 <field name="arch" type="xml">
667 <form string="Company Contribution">
668 <group col="6" colspan="6">
669 <field name="name" select="1"/>
670 <field name="code" select="1"/>
671 <field name="category_id"/>
673 <group col="2" colspan="2">
674 <separator colspan="2" string="Contributions"/>
675 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
676 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
677 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
679 <group col="2" colspan="2">
680 <separator colspan="2" string="Other Information"/>
681 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
682 <field name="active" select="1"/>
684 <notebook colspan="4">
685 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
686 <field name="line_ids" colspan="4" nolabel="1">
687 <tree string="Function Arguments" editable="bottom">
689 <field name="sequence"/>
690 <field name="from_val"/>
691 <field name="to_val"/>
692 <field name="amount_type"/>
693 <field name="value"/>
697 <page string="Description">
698 <field name="note" colspan="4" nolabel="1"/>
704 <record id="hr_company_contribution_tree" model="ir.ui.view">
705 <field name="name">company.contribution.tree</field>
706 <field name="model">company.contribution</field>
707 <field name="type">tree</field>
708 <field name="arch" type="xml">
709 <tree string="Company Contribution">
712 <field name="contribute_per"/>
713 <field name="amount_type"/>
714 <field name="register_id"/>
715 <field name="category_id"/>
720 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
721 <field name="name">company.contribution.select</field>
722 <field name="model">company.contribution</field>
723 <field name="type">search</field>
724 <field name="arch" type="xml">
725 <search string="Search Company Contribution">
726 <group col="8" colspan="4">
727 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
728 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
729 <separator orientation="vertical"/>
732 <field name="contribute_per"/>
733 <field name="register_id"/>
736 <group col="8" colspan="4" expand="0" string="Group By...">
737 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
738 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
743 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
744 <field name="name">Company Contributions</field>
745 <field name="res_model">company.contribution</field>
746 <field name="view_type">form</field>
747 <field name="view_id" ref="hr_company_contribution_tree"/>
748 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
751 id="menu_hr_company_contribution_tree"
752 action="action_hr_company_contribution_tree"
753 parent="payroll_configure"
755 <!-- End Company Contribution -->
757 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
758 <field name="name">hr.payroll.advice.tree</field>
759 <field name="model">hr.payroll.advice</field>
760 <field name="type">tree</field>
761 <field name="arch" type="xml">
762 <tree string="Bank Advice">
763 <field name="number" select="1"/>
764 <field name="name" select="1"/>
765 <field name="date" select="1"/>
766 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
771 <record id="view_hr_bank_advice_form" model="ir.ui.view">
772 <field name="name">hr.payroll.advice.form</field>
773 <field name="model">hr.payroll.advice</field>
774 <field name="type">form</field>
775 <field name="arch" type="xml">
776 <form string="Bank Advice">
777 <group col="6" colspan="4">
778 <field name="name" colspan="4" select="1"/>
779 <field name="number" select="1"/>
780 <field name="register_id"/>
781 <field name="bank_id"/>
783 <notebook colspan="4">
784 <page string="Paymeny Lines">
785 <field name="line_ids" colspan="4" nolabel="1">
786 <tree string="Payment Lines" editable="bottom">
787 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
789 <field name="amount"/>
790 <field name="bysal"/>
795 <page string="Letter Content">
796 <group colspan="4" col="6">
797 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
798 <field name="chaque_nos"/>
799 <field name="date" select="1"/>
801 <separator colspan="4" string="Letter Details"/>
802 <field name="note" colspan="4" nolabel="1"/>
805 <group col="6" colspan="6">
806 <field name="state"/>
807 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
808 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
809 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
814 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
815 <field name="name">Payment Advice</field>
816 <field name="res_model">hr.payroll.advice</field>
817 <field name="view_type">form</field>
818 <field name="view_mode">tree,form</field>
819 <field name="view_id" ref="view_hr_bank_advice_tree"/>
822 action="action_view_hr_bank_advice_tree"
823 id="hr_menu_payment_advice"
824 parent="menu_hr_root_payroll"
827 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
828 <field name="name">hr.payroll.register.tree</field>
829 <field name="model">hr.payroll.register</field>
830 <field name="type">tree</field>
831 <field name="arch" type="xml">
832 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
833 <field name="number"/>
836 <field name="state"/>
840 <record id="view_hr_payroll_register_form" model="ir.ui.view">
841 <field name="name">hr.payroll.register.form</field>
842 <field name="model">hr.payroll.register</field>
843 <field name="type">form</field>
844 <field name="arch" type="xml">
845 <form string="Payroll Register">
846 <group col="6" colspan="4">
847 <field name="name" colspan="4" select="1"/>
848 <field name="number" select="1"/>
849 <field name="bank_id"/>
850 <field name="date" select="1"/>
852 <notebook colspan="4">
853 <page string="Payslips">
854 <field name="line_ids" colspan="4" nolabel="1">
855 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
856 <field name="number"/>
857 <field name="employee_id"/>
860 <field name="basic"/>
861 <field name="allounce"/>
862 <field name="grows"/>
863 <field name="deduction"/>
865 <field name="state"/>
868 <group col="2" colspan="2">
869 <separator colspan="4" string="Allowance / Deduction"/>
870 <field name="allounce"/>
871 <field name="deduction"/>
873 <group col="2" colspan="2">
874 <separator colspan="4" string="Salary Information"/>
875 <field name="grows"/>
880 <group col="8" colspan="4">
881 <field name="state"/>
882 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
883 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
884 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
885 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
886 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
887 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
892 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
893 <field name="name">Payroll Register</field>
894 <field name="res_model">hr.payroll.register</field>
895 <field name="view_type">form</field>
896 <field name="view_mode">tree,form</field>
899 action="action_view_hr_payroll_register_form"
900 id="hr_menu_payroll_register"
901 parent="menu_hr_root_payroll"
905 Contribution Register
907 <record id="hr_contibution_register_tree" model="ir.ui.view">
908 <field name="name">hr.contibution.register.tree</field>
909 <field name="model">hr.contibution.register</field>
910 <field name="type">tree</field>
911 <field name="arch" type="xml">
912 <tree string="Contribution Registers">
913 <field name="name" select="1"/>
914 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
915 <field name="monthly_total_by_emp"/>
916 <field name="monthly_total_by_comp"/>
920 <record id="hr_contibution_register_form" model="ir.ui.view">
921 <field name="name">hr.contibution.register.form</field>
922 <field name="model">hr.contibution.register</field>
923 <field name="type">form</field>
924 <field name="arch" type="xml">
925 <form string="Contribution">
926 <field name="name" select="1"/>
927 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
928 <notebook colspan="4">
929 <page string="Contribution Lines">
930 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
931 <tree string="Register Lines" editable="top">
934 <field name="employee_id"/>
935 <field name="emp_deduction"/>
936 <field name="comp_deduction"/>
937 <field name="total"/>
941 <page string="Description">
942 <separator colspan="4" string="Description"/>
943 <field name="note" colspan="4" nolabel="1"/>
946 <group col="2" colspan="2">
947 <separator colspan="2" string="Month"/>
948 <field name="monthly_total_by_emp"/>
949 <field name="monthly_total_by_comp"/>
954 <record id="action_contibution_register_form" model="ir.actions.act_window">
955 <field name="name">Contibution Register</field>
956 <field name="res_model">hr.contibution.register</field>
957 <field name="view_type">form</field>
958 <field name="view_id" ref="hr_contibution_register_tree"/>
961 id="menu_action_hr_contibution_register_form"
962 action="action_contibution_register_form"
963 parent="payroll_configure"
965 <record id="hr_contibution_register_line_form" model="ir.ui.view">
966 <field name="name">hr.contibution.register.line.form</field>
967 <field name="model">hr.contibution.register.line</field>
968 <field name="type">form</field>
969 <field name="arch" type="xml">
970 <form string="Contribution">
973 <field name="employee_id"/>
974 <field name="emp_deduction"/>
975 <field name="comp_deduction"/>
976 <field name="total"/>
982 <act_window name="Payslips"
983 domain="[('employee_id', '=', active_id)]"
984 res_model="hr.payslip"
985 src_model="hr.employee"
986 view_id ="eval('view_hr_payslip_tree')"
987 id="act_hr_employee_payslip_list"/>