1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll" sequence="9"/>
6 <menuitem id="payroll_configure" parent="hr.menu_hr_configuration" name="Payroll"/>
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"/>
39 <record id="hr_passport_tree" model="ir.ui.view">
40 <field name="name">hr.passport.tree</field>
41 <field name="model">hr.passport</field>
42 <field name="type">tree</field>
43 <field name="arch" type="xml">
44 <tree string="Passport">
46 <field name="employee_id" />
47 <field name="address_id"/>
48 <field name="country_id" />
49 <field name="date_expire"/>
50 <field name="date_issue" />
55 <record id="view_hr_passport_filter" model="ir.ui.view">
56 <field name="name">hr.passport.select</field>
57 <field name="model">hr.passport</field>
58 <field name="type">search</field>
59 <field name="arch" type="xml">
60 <search string="Search Passport">
61 <group col="8" colspan="4">
63 <field name="employee_id"/>
64 <field name="country_id"/>
65 <field name="address_id"/>
68 <group col="8" colspan="4" expand="0" string="Group By...">
69 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
70 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
71 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
72 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
77 <record id="action_hr_passport_tree" model="ir.actions.act_window">
78 <field name="name">All Passports</field>
79 <field name="res_model">hr.passport</field>
80 <field name="view_type">form</field>
81 <field name="view_id" ref="hr_passport_tree"/>
82 <field name="search_view_id" ref="view_hr_passport_filter"/>
84 <!-- End Passport Views -->
86 <!-- Employee View -->
87 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
88 <field name="name">hr.hr.employee.view.form2</field>
89 <field name="model">hr.employee</field>
90 <field name="inherit_id" ref="hr.view_employee_form"/>
91 <field name="arch" type="xml">
93 <xpath expr="/form/notebook/page[@string='Personal Information']" position="after">
94 <page string="Miscellaneous" groups="base.group_hr_user">
95 <group colspan="2" col="2">
96 <separator string="Personal Info" colspan="2"/>
97 <field name="bank_account_id" context="{'display_partner':True, 'partner_id':partner_id}"/>
98 <field name="place_of_birth"/>
99 <field name="children"/>
101 <group colspan="2" col="2">
102 <separator string="Job Info" colspan="2"/>
103 <field name="manager" select="1"/>
104 <field name="vehicle" select="1"/>
105 <field name="vehicle_distance" select="1"/>
106 <field name="medic_exam" select="1" string="Medical Examination"/>
113 <record id="view_employee_passport_form" model="ir.ui.view">
114 <field name="name">hr.employee.passport.form</field>
115 <field name="model">hr.employee</field>
116 <field name="type">form</field>
117 <field name="inherit_id" ref="hr.view_employee_form"/>
118 <field name="arch" type="xml">
119 <field name="passport_id" position="replace">
120 <field name="passport_id"/>
121 <field name="otherid"/>
126 <!-- End Employee View -->
128 <!-- Contract View -->
129 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
130 <field name="name">hr.contract.view.form</field>
131 <field name="model">hr.contract</field>
132 <field name="type">form</field>
133 <field name="arch" type="xml">
134 <form string="Contract">
135 <group colspan="4" col="6">
136 <field name="name" select="1"/>
137 <field name="employee_id" select="1"/>
138 <field name="job_id"/>
140 <field name="wage_type_id" widget="selection"/>
141 <field name="type_id" widget="selection"/>
143 <notebook colspan="4">
144 <page string="Main Data">
145 <group col="2" colspan="2">
146 <separator colspan="2" string="Duration"/>
147 <field name="date_start" select="1"/>
148 <field name="date_end" select="1"/>
149 <field name="working_hours"/>
150 <field name="working_days_per_week" select="1"/>
151 <separator colspan="2" string="Trial Period"/>
152 <field name="trial_date_start" />
153 <field name="trial_date_end" />
155 <group col="2" colspan="2">
156 <separator colspan="2" string="Advantages"/>
157 <field name="struct_id" select="1"/>
158 <field name="advantages_gross"/>
159 <field name="advantages_net"/>
160 <field name="advantages" nolabel="1" colspan="2"/>
163 <page string="Work Permit">
164 <group col="2" colspan="2">
165 <separator colspan="2" string="Passport"/>
166 <field name="passport_id" domain="[('employee_id','=',employee_id)]"/>
168 <group col="2" colspan="2">
169 <separator colspan="2" string="Valid for"/>
170 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
171 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
172 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
176 <separator colspan="4" string="Notes"/>
177 <field colspan="4" name="notes" nolabel="1"/>
181 <!--menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/-->
182 <!-- End Contract View-->
184 <!-- Salary structure -->
185 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
186 <field name="name">hr.payroll.structure.tree</field>
187 <field name="model">hr.payroll.structure</field>
188 <field name="type">tree</field>
189 <field name="arch" type="xml">
190 <tree string="Employee Function">
193 <field name="line_ids"/>
194 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
199 <record id="view_hr_employee_grade_form" model="ir.ui.view">
200 <field name="name">hr.payroll.structure.form</field>
201 <field name="model">hr.payroll.structure</field>
202 <field name="type">form</field>
203 <field name="arch" type="xml">
204 <form string="Employee Function">
205 <group col="6" colspan="4">
206 <field name="name" colspan="4" select="1"/>
207 <field name="code" select="1"/>
208 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
210 <notebook colspan="4">
211 <page string="Salary Structure">
212 <field name="line_ids" nolabel="1" colspan="4">
213 <form string="Payslip Line">
214 <group col="6" colspan="4">
215 <field name="name" colspan="4" select="1"/>
216 <field name="code" select="1"/>
218 <group col="2" colspan="2">
219 <separator colspan="4" string="Calculations"/>
220 <field name="category_id" on_change="onchange_category(category_id)"/>
222 <field name="amount_type"/>
223 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
224 <field name="sequence" groups="base.group_extended"/>
226 <group col="2" colspan="2">
227 <separator colspan="4" string="Company contribution"/>
228 <field name="company_contrib"/>
230 <notebook colspan="4">
231 <page string="Function">
232 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
233 <tree string="Function Arguments" editable="bottom">
235 <field name="sequence" groups="base.group_extended"/>
236 <field name="from_val"/>
237 <field name="to_val"/>
238 <field name="amount_type"/>
239 <field name="value"/>
243 <page string="Description">
244 <separator colspan="4" string="Description"/>
245 <field name="note" colspan="4" nolabel="1"/>
256 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
257 <field name="name">Salary Structure</field>
258 <field name="res_model">hr.payroll.structure</field>
259 <field name="view_type">form</field>
260 <field name="view_id" ref="view_hr_employee_grade_tree"/>
263 id="menu_hr_employee_function"
264 action="action_view_hr_employee_grade_form"
265 parent="payroll_configure"
267 <!-- End Salary structure -->
269 <!-- Holiday Status -->
270 <record model="ir.ui.view" id="view_holiday_status_form1">
271 <field name="name">hr.holidays.status.inherit</field>
272 <field name="model">hr.holidays.status</field>
273 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
274 <field name="type">form</field>
275 <field name="arch" type="xml">
276 <xpath expr="//group[@name='selection']" position="replace">
278 <separator string="Validation" colspan="2"/>
280 <field name="active" />
282 <field name="double_validation"/>
284 <field name="limit"/>
287 <separator colspan="2" string="Payroll Configurtion"/><newline/>
288 <field name="type"/><newline/>
289 <field name="head_id"/><newline/>
290 <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/><newline/>
291 <field name="code" readonly="True"/>
296 <!-- End Holiday Status -->
298 <!-- Payslip Line -->
299 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
300 <field name="name">hr.payslip.line.tree</field>
301 <field name="model">hr.payslip.line</field>
302 <field name="type">tree</field>
303 <field name="arch" type="xml">
304 <tree string="Salary Structure" editable="bottom">
305 <field name="category_id" on_change="onchange_category(category_id)"/>
306 <field name="sequence" groups="base.group_extended"/>
310 <field name="amount_type"/>
311 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
315 <record id="view_hr_payslip_line_form" model="ir.ui.view">
316 <field name="name">hr.payslip.line.form</field>
317 <field name="model">hr.payslip.line</field>
318 <field name="type">form</field>
319 <field name="arch" type="xml">
320 <form string="Payslip Line">
321 <group col="6" colspan="4">
322 <field name="name" colspan="4" select="1"/>
323 <field name="code" select="1"/>
324 <field name="slip_id" select="1"/>
325 <field name="employee_id"/>
326 <field name="function_id"/>
328 <group col="2" colspan="2">
329 <separator colspan="4" string="Calculations"/>
330 <field name="category_id" on_change="onchange_category(category_id)"/>
332 <field name="amount_type"/>
333 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
334 <field name="sequence" groups="base.group_extended"/>
336 <group col="2" colspan="2">
337 <separator colspan="4" string="Company contribution"/>
338 <field name="company_contrib"/>
340 <notebook colspan="4">
341 <page string="Function">
342 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
343 <tree string="Function Arguments" editable="bottom">
345 <field name="sequence" groups="base.group_extended"/>
346 <field name="from_val"/>
347 <field name="to_val"/>
348 <field name="amount_type"/>
349 <field name="value"/>
353 <page string="Description">
354 <separator colspan="4" string="Description"/>
355 <field name="note" colspan="4" nolabel="1"/>
362 <record id="view_hr_payslip_tree" model="ir.ui.view">
363 <field name="name">hr.payslip.tree</field>
364 <field name="model">hr.payslip</field>
365 <field name="type">tree</field>
366 <field name="arch" type="xml">
367 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
368 <field name="number"/>
369 <field name="employee_id"/>
370 <field name="register_id" invisible="1"/>
373 <field name="grows"/>
375 <field name="state"/>
376 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
381 <record id="view_hr_payslip_form" model="ir.ui.view">
382 <field name="name">hr.payslip.form</field>
383 <field name="model">hr.payslip</field>
384 <field name="type">form</field>
385 <field name="arch" type="xml">
386 <form string="Payslip">
387 <group col="6" colspan="4">
388 <field name="employee_id"/>
390 <field name="number" select="1"/>
393 <notebook colspan="4">
394 <page string="Salary Computation">
395 <field name="line_ids" colspan="4" nolabel="1">
396 <tree string="Salary Structure" editable="bottom">
397 <field name="category_id" on_change="onchange_category(category_id)"/>
398 <field name="sequence" groups="base.group_extended"/>
402 <field name="amount_type"/>
403 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
404 <field name="total"/>
406 <form string="Payslip Line">
407 <group col="6" colspan="4">
408 <field name="name" colspan="4" select="1"/>
409 <field name="code" select="1"/>
411 <group col="2" colspan="2">
412 <separator colspan="4" string="Calculations"/>
413 <field name="category_id" on_change="onchange_category(category_id)"/>
415 <field name="amount_type"/>
416 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
417 <field name="sequence" groups="base.group_extended"/>
419 <group col="2" colspan="2">
420 <separator colspan="4" string="Company contribution"/>
421 <field name="company_contrib"/>
423 <notebook colspan="4">
424 <page string="Function">
425 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
426 <tree string="Function Arguments" editable="bottom">
428 <field name="sequence" groups="base.group_extended"/>
429 <field name="from_val"/>
430 <field name="to_val"/>
431 <field name="amount_type"/>
432 <field name="value"/>
436 <page string="Description">
437 <separator colspan="4" string="Description"/>
438 <field name="note" colspan="4" nolabel="1"/>
443 <group col="6" colspan="4">
444 <separator string="Computation Overview" colspan="6"/>
445 <field name="working_days"/>
446 <field name="holiday_days"/>
447 <field name="worked_days"/>
448 <field name="basic_before_leaves"/>
449 <field name="leaves"/>
450 <field name="basic"/>
451 <field name="allounce"/>
452 <field name="deduction"/>
453 <field name="other_pay"/>
454 <field name="grows"/>
456 <field name="total_pay"/>
459 <page string="Other Informations">
460 <group col="2" colspan="1">
461 <separator colspan="2" string="Other Informations"/>
462 <field name="paid" readonly="1"/>
463 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
464 <field name="register_id" groups="base.group_extended"/>
465 <field name="deg_id" groups="base.group_extended"/>
466 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
469 <separator colspan="4" string="Description"/>
470 <field name="note" colspan="4" nolabel="1"/>
473 <group col="10" colspan="4">
474 <field name="state"/>
475 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
476 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
477 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
478 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
479 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
480 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
481 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
486 <record id="view_hr_payslip_filter" model="ir.ui.view">
487 <field name="name">hr.payslip.select</field>
488 <field name="model">hr.payslip</field>
489 <field name="type">search</field>
490 <field name="arch" type="xml">
491 <search string="Search Payslips">
492 <group col="8" colspan="4">
493 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
494 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
495 <separator orientation="vertical"/>
496 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
497 <separator orientation="vertical"/>
499 <field name="employee_id"/>
500 <field name="number"/>
504 <group col="8" colspan="4" expand="0" string="Group By...">
505 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
506 <separator orientation="vertical"/>
507 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
508 <separator orientation="vertical"/>
509 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
510 <separator orientation="vertical"/>
511 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
516 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
517 <field name="name">Employee Payslip</field>
518 <field name="res_model">hr.payslip</field>
519 <field name="view_type">form</field>
520 <field name="view_id" ref="view_hr_payslip_tree"/>
521 <field name="search_view_id" ref="view_hr_payslip_filter"/>
523 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
525 <!-- Payment Heads -->
526 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
527 <field name="name">hr.allounce.deduction.categoty.form</field>
528 <field name="model">hr.allounce.deduction.categoty</field>
529 <field name="type">form</field>
530 <field name="arch" type="xml">
531 <form string="Salary Heads">
532 <group col="6" colspan="6">
533 <field name="name" select="1"/>
534 <field name="code" select="1"/>
535 <field name="type" select="1"/>
536 <group col="2" colspan="4">
537 <separator colspan="4" string="Based on"/>
538 <field name="base" colspan="4" nolabel="1"/>
540 <group col="2" colspan="2">
541 <separator colspan="4" string="Dynamic Computation"/>
542 <field name="condition"/>
543 <field name="sequence"/>
546 <notebook colspan="4">
547 <page string="Description">
548 <field name="note" colspan="4" nolabel="1"/>
550 <page string="Contribution">
551 <field name="contribute_ids" colspan="4" nolabel="1" height="300">
552 <form string="Company Contribution">
553 <group col="6" colspan="6">
554 <field name="name" select="1"/>
555 <field name="code" select="1"/>
557 <group col="2" colspan="2">
558 <separator colspan="2" string="Contributions"/>
559 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
560 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
561 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
563 <group col="2" colspan="2">
564 <separator colspan="2" string="Other Information"/>
565 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
566 <field name="active" select="1"/>
568 <notebook colspan="4">
569 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
570 <field name="line_ids" colspan="4" nolabel="1">
571 <tree string="Function Arguments" editable="bottom">
573 <field name="sequence"/>
574 <field name="from_val"/>
575 <field name="to_val"/>
576 <field name="amount_type"/>
577 <field name="value"/>
581 <page string="Description">
582 <field name="note" colspan="4" nolabel="1"/>
592 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
593 <field name="name">hr.allounce.deduction.categoty.tree</field>
594 <field name="model">hr.allounce.deduction.categoty</field>
595 <field name="type">tree</field>
596 <field name="arch" type="xml">
597 <tree string="Salary Heads">
602 <field name="condition"/>
603 <field name="sequence"/>
608 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
609 <field name="name">hr.allounce.deduction.categoty.select</field>
610 <field name="model">hr.allounce.deduction.categoty</field>
611 <field name="type">search</field>
612 <field name="arch" type="xml">
613 <search string="Salary Heads">
614 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
615 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
616 <separator orientation="vertical"/>
617 <field name="name" select="1"/>
618 <field name="code" select="1"/>
621 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
622 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
623 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
629 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
630 <field name="name">Salary Heads</field>
631 <field name="res_model">hr.allounce.deduction.categoty</field>
632 <field name="view_type">form</field>
633 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
634 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
637 id="menu_hr_allounce_deduction_tree"
638 action="hr_allounce_deduction_tree"
639 parent="payroll_configure"
641 <!-- End Payment Heads -->
643 <!-- Company Contribution -->
644 <record id="hr_company_contribution_form" model="ir.ui.view">
645 <field name="name">company.contribution.form</field>
646 <field name="model">company.contribution</field>
647 <field name="type">form</field>
648 <field name="arch" type="xml">
649 <form string="Company Contribution">
650 <group col="6" colspan="6">
651 <field name="name" select="1"/>
652 <field name="code" select="1"/>
653 <field name="category_id"/>
655 <group col="2" colspan="2">
656 <separator colspan="2" string="Contributions"/>
657 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
658 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
659 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
661 <group col="2" colspan="2">
662 <separator colspan="2" string="Other Information"/>
663 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
664 <field name="active" select="1"/>
666 <notebook colspan="4">
667 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
668 <field name="line_ids" colspan="4" nolabel="1">
669 <tree string="Function Arguments" editable="bottom">
671 <field name="sequence"/>
672 <field name="from_val"/>
673 <field name="to_val"/>
674 <field name="amount_type"/>
675 <field name="value"/>
679 <page string="Description">
680 <field name="note" colspan="4" nolabel="1"/>
686 <record id="hr_company_contribution_tree" model="ir.ui.view">
687 <field name="name">company.contribution.tree</field>
688 <field name="model">company.contribution</field>
689 <field name="type">tree</field>
690 <field name="arch" type="xml">
691 <tree string="Company Contribution">
694 <field name="contribute_per"/>
695 <field name="amount_type"/>
696 <field name="register_id"/>
697 <field name="category_id"/>
702 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
703 <field name="name">company.contribution.select</field>
704 <field name="model">company.contribution</field>
705 <field name="type">search</field>
706 <field name="arch" type="xml">
707 <search string="Search Company Contribution">
708 <group col="8" colspan="4">
709 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
710 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
711 <separator orientation="vertical"/>
714 <field name="contribute_per"/>
715 <field name="register_id"/>
718 <group col="8" colspan="4" expand="0" string="Group By...">
719 <filter string="Type" icon="terp-stock_symbol-selection" name="amount_type" context="{'group_by':'amount_type'}"/>
720 <filter string="Category" name="category_id" icon="terp-stock_symbol-selection" context="{'group_by':'category_id'}"/>
725 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
726 <field name="name">Company Contributions</field>
727 <field name="res_model">company.contribution</field>
728 <field name="view_type">form</field>
729 <field name="view_id" ref="hr_company_contribution_tree"/>
730 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
733 id="menu_hr_company_contribution_tree"
734 action="action_hr_company_contribution_tree"
735 parent="payroll_configure"
737 <!-- End Company Contribution -->
739 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
740 <field name="name">hr.payroll.advice.tree</field>
741 <field name="model">hr.payroll.advice</field>
742 <field name="type">tree</field>
743 <field name="arch" type="xml">
744 <tree string="Bank Advice">
745 <field name="number" select="1"/>
746 <field name="name" select="1"/>
747 <field name="date" select="1"/>
748 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
753 <record id="view_hr_bank_advice_form" model="ir.ui.view">
754 <field name="name">hr.payroll.advice.form</field>
755 <field name="model">hr.payroll.advice</field>
756 <field name="type">form</field>
757 <field name="arch" type="xml">
758 <form string="Bank Advice">
759 <group col="6" colspan="4">
760 <field name="name" colspan="4" select="1"/>
761 <field name="number" select="1"/>
762 <field name="register_id"/>
763 <field name="bank_id"/>
765 <notebook colspan="4">
766 <page string="Paymeny Lines">
767 <field name="line_ids" colspan="4" nolabel="1">
768 <tree string="Payment Lines" editable="bottom">
769 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
771 <field name="amount"/>
772 <field name="bysal"/>
777 <page string="Letter Content">
778 <group colspan="4" col="6">
779 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
780 <field name="chaque_nos"/>
781 <field name="date" select="1"/>
783 <separator colspan="4" string="Letter Details"/>
784 <field name="note" colspan="4" nolabel="1"/>
787 <group col="6" colspan="6">
788 <field name="state"/>
789 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
790 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
791 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
796 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
797 <field name="name">Payment Advice</field>
798 <field name="res_model">hr.payroll.advice</field>
799 <field name="view_type">form</field>
800 <field name="view_mode">tree,form</field>
801 <field name="view_id" ref="view_hr_bank_advice_tree"/>
804 action="action_view_hr_bank_advice_tree"
805 id="hr_menu_payment_advice"
806 parent="menu_hr_root_payroll"
809 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
810 <field name="name">hr.payroll.register.tree</field>
811 <field name="model">hr.payroll.register</field>
812 <field name="type">tree</field>
813 <field name="arch" type="xml">
814 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
815 <field name="number"/>
818 <field name="state"/>
822 <record id="view_hr_payroll_register_form" model="ir.ui.view">
823 <field name="name">hr.payroll.register.form</field>
824 <field name="model">hr.payroll.register</field>
825 <field name="type">form</field>
826 <field name="arch" type="xml">
827 <form string="Payroll Register">
828 <group col="6" colspan="4">
829 <field name="name" colspan="4" select="1"/>
830 <field name="number" select="1"/>
831 <field name="bank_id"/>
832 <field name="date" select="1"/>
834 <notebook colspan="4">
835 <page string="Payslips">
836 <field name="line_ids" colspan="4" nolabel="1">
837 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
838 <field name="number"/>
839 <field name="employee_id"/>
842 <field name="basic"/>
843 <field name="allounce"/>
844 <field name="grows"/>
845 <field name="deduction"/>
847 <field name="state"/>
850 <group col="2" colspan="2">
851 <separator colspan="4" string="Allowance / Deduction"/>
852 <field name="allounce"/>
853 <field name="deduction"/>
855 <group col="2" colspan="2">
856 <separator colspan="4" string="Salary Information"/>
857 <field name="grows"/>
862 <group col="8" colspan="4">
863 <field name="state"/>
864 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
865 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
866 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
867 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
868 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
869 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
874 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
875 <field name="name">Payroll Register</field>
876 <field name="res_model">hr.payroll.register</field>
877 <field name="view_type">form</field>
878 <field name="view_mode">tree,form</field>
881 action="action_view_hr_payroll_register_form"
882 id="hr_menu_payroll_register"
883 parent="menu_hr_root_payroll"
887 Contribution Register
889 <record id="hr_contibution_register_tree" model="ir.ui.view">
890 <field name="name">hr.contibution.register.tree</field>
891 <field name="model">hr.contibution.register</field>
892 <field name="type">tree</field>
893 <field name="arch" type="xml">
894 <tree string="Contribution Registers">
895 <field name="name" select="1"/>
896 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
897 <field name="monthly_total_by_emp"/>
898 <field name="monthly_total_by_comp"/>
902 <record id="hr_contibution_register_form" model="ir.ui.view">
903 <field name="name">hr.contibution.register.form</field>
904 <field name="model">hr.contibution.register</field>
905 <field name="type">form</field>
906 <field name="arch" type="xml">
907 <form string="Contribution">
908 <field name="name" select="1"/>
909 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
910 <notebook colspan="4">
911 <page string="Contribution Lines">
912 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
913 <tree string="Register Lines" editable="top">
916 <field name="employee_id"/>
917 <field name="emp_deduction"/>
918 <field name="comp_deduction"/>
919 <field name="total"/>
923 <page string="Description">
924 <separator colspan="4" string="Description"/>
925 <field name="note" colspan="4" nolabel="1"/>
928 <group col="2" colspan="2" name="Month">
929 <separator colspan="2" string="Month"/>
930 <field name="monthly_total_by_emp"/>
931 <field name="monthly_total_by_comp"/>
936 <record id="action_contibution_register_form" model="ir.actions.act_window">
937 <field name="name">Contribution Register</field>
938 <field name="res_model">hr.contibution.register</field>
939 <field name="view_type">form</field>
940 <field name="view_id" ref="hr_contibution_register_tree"/>
943 id="menu_action_hr_contibution_register_form"
944 action="action_contibution_register_form"
945 parent="payroll_configure"
947 <record id="hr_contibution_register_line_form" model="ir.ui.view">
948 <field name="name">hr.contibution.register.line.form</field>
949 <field name="model">hr.contibution.register.line</field>
950 <field name="type">form</field>
951 <field name="arch" type="xml">
952 <form string="Contribution">
955 <field name="employee_id"/>
956 <field name="emp_deduction"/>
957 <field name="comp_deduction"/>
958 <field name="total"/>
966 <act_window name="Payslips"
967 domain="[('employee_id', '=', active_id)]"
968 res_model="hr.payslip"
969 src_model="hr.employee"
970 view_id ="view_hr_payslip_tree"
971 id="act_hr_employee_payslip_list"
972 groups="base.group_hr_manager"/>