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="double_validation"/>
282 <field name="limit"/>
285 <separator colspan="2" string="Payroll Configurtion"/><newline/>
286 <field name="type"/><newline/>
287 <field name="head_id"/><newline/>
288 <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/><newline/>
289 <field name="code" readonly="True"/>
294 <!-- End Holiday Status -->
296 <!-- Payslip Line -->
297 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
298 <field name="name">hr.payslip.line.tree</field>
299 <field name="model">hr.payslip.line</field>
300 <field name="type">tree</field>
301 <field name="arch" type="xml">
302 <tree string="Salary Structure" editable="bottom">
303 <field name="category_id" on_change="onchange_category(category_id)"/>
304 <field name="sequence" groups="base.group_extended"/>
308 <field name="amount_type"/>
309 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
313 <record id="view_hr_payslip_line_form" model="ir.ui.view">
314 <field name="name">hr.payslip.line.form</field>
315 <field name="model">hr.payslip.line</field>
316 <field name="type">form</field>
317 <field name="arch" type="xml">
318 <form string="Payslip Line">
319 <group col="6" colspan="4">
320 <field name="name" colspan="4" select="1"/>
321 <field name="code" select="1"/>
322 <field name="slip_id" select="1"/>
323 <field name="employee_id"/>
324 <field name="function_id"/>
326 <group col="2" colspan="2">
327 <separator colspan="4" string="Calculations"/>
328 <field name="category_id" on_change="onchange_category(category_id)"/>
330 <field name="amount_type"/>
331 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
332 <field name="sequence" groups="base.group_extended"/>
334 <group col="2" colspan="2">
335 <separator colspan="4" string="Company contribution"/>
336 <field name="company_contrib"/>
338 <notebook colspan="4">
339 <page string="Function">
340 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
341 <tree string="Function Arguments" editable="bottom">
343 <field name="sequence" groups="base.group_extended"/>
344 <field name="from_val"/>
345 <field name="to_val"/>
346 <field name="amount_type"/>
347 <field name="value"/>
351 <page string="Description">
352 <separator colspan="4" string="Description"/>
353 <field name="note" colspan="4" nolabel="1"/>
360 <record id="view_hr_payslip_tree" model="ir.ui.view">
361 <field name="name">hr.payslip.tree</field>
362 <field name="model">hr.payslip</field>
363 <field name="type">tree</field>
364 <field name="arch" type="xml">
365 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
366 <field name="number"/>
367 <field name="employee_id"/>
368 <field name="register_id" invisible="1"/>
371 <field name="grows"/>
373 <field name="state"/>
374 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
379 <record id="view_hr_payslip_form" model="ir.ui.view">
380 <field name="name">hr.payslip.form</field>
381 <field name="model">hr.payslip</field>
382 <field name="type">form</field>
383 <field name="arch" type="xml">
384 <form string="Payslip">
385 <group col="6" colspan="4">
386 <field name="employee_id"/>
388 <field name="number" select="1"/>
391 <notebook colspan="4">
392 <page string="Salary Computation">
393 <field name="line_ids" colspan="4" nolabel="1">
394 <tree string="Salary Structure" editable="bottom">
395 <field name="category_id" on_change="onchange_category(category_id)"/>
396 <field name="sequence" groups="base.group_extended"/>
400 <field name="amount_type"/>
401 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
402 <field name="total"/>
404 <form string="Payslip Line">
405 <group col="6" colspan="4">
406 <field name="name" colspan="4" select="1"/>
407 <field name="code" select="1"/>
409 <group col="2" colspan="2">
410 <separator colspan="4" string="Calculations"/>
411 <field name="category_id" on_change="onchange_category(category_id)"/>
413 <field name="amount_type"/>
414 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
415 <field name="sequence" groups="base.group_extended"/>
417 <group col="2" colspan="2">
418 <separator colspan="4" string="Company contribution"/>
419 <field name="company_contrib"/>
421 <notebook colspan="4">
422 <page string="Function">
423 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
424 <tree string="Function Arguments" editable="bottom">
426 <field name="sequence" groups="base.group_extended"/>
427 <field name="from_val"/>
428 <field name="to_val"/>
429 <field name="amount_type"/>
430 <field name="value"/>
434 <page string="Description">
435 <separator colspan="4" string="Description"/>
436 <field name="note" colspan="4" nolabel="1"/>
441 <group col="6" colspan="4">
442 <separator string="Computation Overview" colspan="6"/>
443 <field name="working_days"/>
444 <field name="holiday_days"/>
445 <field name="worked_days"/>
446 <field name="basic_before_leaves"/>
447 <field name="leaves"/>
448 <field name="basic"/>
449 <field name="allounce"/>
450 <field name="deduction"/>
451 <field name="other_pay"/>
452 <field name="grows"/>
454 <field name="total_pay"/>
457 <page string="Other Informations">
458 <group col="2" colspan="1">
459 <separator colspan="2" string="Other Informations"/>
460 <field name="paid" readonly="1"/>
461 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
462 <field name="register_id" groups="base.group_extended"/>
463 <field name="deg_id" groups="base.group_extended"/>
464 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
467 <separator colspan="4" string="Description"/>
468 <field name="note" colspan="4" nolabel="1"/>
471 <group col="10" colspan="4">
472 <field name="state"/>
473 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
474 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
475 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
476 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
477 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
478 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
479 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
484 <record id="view_hr_payslip_filter" model="ir.ui.view">
485 <field name="name">hr.payslip.select</field>
486 <field name="model">hr.payslip</field>
487 <field name="type">search</field>
488 <field name="arch" type="xml">
489 <search string="Search Payslips">
490 <group col="8" colspan="4">
491 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
492 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
493 <separator orientation="vertical"/>
494 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
495 <separator orientation="vertical"/>
497 <field name="employee_id"/>
498 <field name="number"/>
502 <group col="8" colspan="4" expand="0" string="Group By...">
503 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
504 <separator orientation="vertical"/>
505 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
506 <separator orientation="vertical"/>
507 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
508 <separator orientation="vertical"/>
509 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
514 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
515 <field name="name">Employee Payslip</field>
516 <field name="res_model">hr.payslip</field>
517 <field name="view_type">form</field>
518 <field name="view_id" ref="view_hr_payslip_tree"/>
519 <field name="search_view_id" ref="view_hr_payslip_filter"/>
521 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
523 <!-- Payment Heads -->
524 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
525 <field name="name">hr.allounce.deduction.categoty.form</field>
526 <field name="model">hr.allounce.deduction.categoty</field>
527 <field name="type">form</field>
528 <field name="arch" type="xml">
529 <form string="Salary Heads">
530 <group col="6" colspan="6">
531 <field name="name" select="1"/>
532 <field name="code" select="1"/>
533 <field name="type" select="1"/>
534 <group col="2" colspan="4">
535 <separator colspan="4" string="Based on"/>
536 <field name="base" colspan="4" nolabel="1"/>
538 <group col="2" colspan="2">
539 <separator colspan="4" string="Dynamic Computation"/>
540 <field name="condition"/>
541 <field name="sequence"/>
544 <notebook colspan="4">
545 <page string="Description">
546 <field name="note" colspan="4" nolabel="1"/>
548 <page string="Contribution">
549 <field name="contribute_ids" colspan="4" nolabel="1" height="300">
550 <form string="Company Contribution">
551 <group col="6" colspan="6">
552 <field name="name" select="1"/>
553 <field name="code" select="1"/>
555 <group col="2" colspan="2">
556 <separator colspan="2" string="Contributions"/>
557 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
558 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
559 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
561 <group col="2" colspan="2">
562 <separator colspan="2" string="Other Information"/>
563 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
564 <field name="active" select="1"/>
566 <notebook colspan="4">
567 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
568 <field name="line_ids" colspan="4" nolabel="1">
569 <tree string="Function Arguments" editable="bottom">
571 <field name="sequence"/>
572 <field name="from_val"/>
573 <field name="to_val"/>
574 <field name="amount_type"/>
575 <field name="value"/>
579 <page string="Description">
580 <field name="note" colspan="4" nolabel="1"/>
590 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
591 <field name="name">hr.allounce.deduction.categoty.tree</field>
592 <field name="model">hr.allounce.deduction.categoty</field>
593 <field name="type">tree</field>
594 <field name="arch" type="xml">
595 <tree string="Salary Heads">
600 <field name="condition"/>
601 <field name="sequence"/>
606 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
607 <field name="name">hr.allounce.deduction.categoty.select</field>
608 <field name="model">hr.allounce.deduction.categoty</field>
609 <field name="type">search</field>
610 <field name="arch" type="xml">
611 <search string="Salary Heads">
612 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
613 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
614 <separator orientation="vertical"/>
615 <field name="name" select="1"/>
616 <field name="code" select="1"/>
619 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
620 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
621 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
627 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
628 <field name="name">Salary Heads</field>
629 <field name="res_model">hr.allounce.deduction.categoty</field>
630 <field name="view_type">form</field>
631 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
632 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
635 id="menu_hr_allounce_deduction_tree"
636 action="hr_allounce_deduction_tree"
637 parent="payroll_configure"
639 <!-- End Payment Heads -->
641 <!-- Company Contribution -->
642 <record id="hr_company_contribution_form" model="ir.ui.view">
643 <field name="name">company.contribution.form</field>
644 <field name="model">company.contribution</field>
645 <field name="type">form</field>
646 <field name="arch" type="xml">
647 <form string="Company Contribution">
648 <group col="6" colspan="6">
649 <field name="name" select="1"/>
650 <field name="code" select="1"/>
651 <field name="category_id"/>
653 <group col="2" colspan="2">
654 <separator colspan="2" string="Contributions"/>
655 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
656 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
657 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
659 <group col="2" colspan="2">
660 <separator colspan="2" string="Other Information"/>
661 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
662 <field name="active" select="1"/>
664 <notebook colspan="4">
665 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
666 <field name="line_ids" colspan="4" nolabel="1">
667 <tree string="Function Arguments" editable="bottom">
669 <field name="sequence"/>
670 <field name="from_val"/>
671 <field name="to_val"/>
672 <field name="amount_type"/>
673 <field name="value"/>
677 <page string="Description">
678 <field name="note" colspan="4" nolabel="1"/>
684 <record id="hr_company_contribution_tree" model="ir.ui.view">
685 <field name="name">company.contribution.tree</field>
686 <field name="model">company.contribution</field>
687 <field name="type">tree</field>
688 <field name="arch" type="xml">
689 <tree string="Company Contribution">
692 <field name="contribute_per"/>
693 <field name="amount_type"/>
694 <field name="register_id"/>
695 <field name="category_id"/>
700 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
701 <field name="name">company.contribution.select</field>
702 <field name="model">company.contribution</field>
703 <field name="type">search</field>
704 <field name="arch" type="xml">
705 <search string="Search Company Contribution">
706 <group col="8" colspan="4">
707 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
708 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
709 <separator orientation="vertical"/>
712 <field name="contribute_per"/>
713 <field name="register_id"/>
716 <group col="8" colspan="4" expand="0" string="Group By...">
717 <filter string="Type" icon="terp-stock_symbol-selection" name="amount_type" context="{'group_by':'amount_type'}"/>
718 <filter string="Category" name="category_id" icon="terp-stock_symbol-selection" context="{'group_by':'category_id'}"/>
723 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
724 <field name="name">Company Contributions</field>
725 <field name="res_model">company.contribution</field>
726 <field name="view_type">form</field>
727 <field name="view_id" ref="hr_company_contribution_tree"/>
728 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
731 id="menu_hr_company_contribution_tree"
732 action="action_hr_company_contribution_tree"
733 parent="payroll_configure"
735 <!-- End Company Contribution -->
737 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
738 <field name="name">hr.payroll.advice.tree</field>
739 <field name="model">hr.payroll.advice</field>
740 <field name="type">tree</field>
741 <field name="arch" type="xml">
742 <tree string="Bank Advice">
743 <field name="number" select="1"/>
744 <field name="name" select="1"/>
745 <field name="date" select="1"/>
746 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
751 <record id="view_hr_bank_advice_form" model="ir.ui.view">
752 <field name="name">hr.payroll.advice.form</field>
753 <field name="model">hr.payroll.advice</field>
754 <field name="type">form</field>
755 <field name="arch" type="xml">
756 <form string="Bank Advice">
757 <group col="6" colspan="4">
758 <field name="name" colspan="4" select="1"/>
759 <field name="number" select="1"/>
760 <field name="register_id"/>
761 <field name="bank_id"/>
763 <notebook colspan="4">
764 <page string="Paymeny Lines">
765 <field name="line_ids" colspan="4" nolabel="1">
766 <tree string="Payment Lines" editable="bottom">
767 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
769 <field name="amount"/>
770 <field name="bysal"/>
775 <page string="Letter Content">
776 <group colspan="4" col="6">
777 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
778 <field name="chaque_nos"/>
779 <field name="date" select="1"/>
781 <separator colspan="4" string="Letter Details"/>
782 <field name="note" colspan="4" nolabel="1"/>
785 <group col="6" colspan="6">
786 <field name="state"/>
787 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
788 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
789 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
794 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
795 <field name="name">Payment Advice</field>
796 <field name="res_model">hr.payroll.advice</field>
797 <field name="view_type">form</field>
798 <field name="view_mode">tree,form</field>
799 <field name="view_id" ref="view_hr_bank_advice_tree"/>
802 action="action_view_hr_bank_advice_tree"
803 id="hr_menu_payment_advice"
804 parent="menu_hr_root_payroll"
807 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
808 <field name="name">hr.payroll.register.tree</field>
809 <field name="model">hr.payroll.register</field>
810 <field name="type">tree</field>
811 <field name="arch" type="xml">
812 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
813 <field name="number"/>
816 <field name="state"/>
820 <record id="view_hr_payroll_register_form" model="ir.ui.view">
821 <field name="name">hr.payroll.register.form</field>
822 <field name="model">hr.payroll.register</field>
823 <field name="type">form</field>
824 <field name="arch" type="xml">
825 <form string="Payroll Register">
826 <group col="6" colspan="4">
827 <field name="name" colspan="4" select="1"/>
828 <field name="number" select="1"/>
829 <field name="bank_id"/>
830 <field name="date" select="1"/>
832 <notebook colspan="4">
833 <page string="Payslips">
834 <field name="line_ids" colspan="4" nolabel="1">
835 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
836 <field name="number"/>
837 <field name="employee_id"/>
840 <field name="basic"/>
841 <field name="allounce"/>
842 <field name="grows"/>
843 <field name="deduction"/>
845 <field name="state"/>
848 <group col="2" colspan="2">
849 <separator colspan="4" string="Allowance / Deduction"/>
850 <field name="allounce"/>
851 <field name="deduction"/>
853 <group col="2" colspan="2">
854 <separator colspan="4" string="Salary Information"/>
855 <field name="grows"/>
860 <group col="8" colspan="4">
861 <field name="state"/>
862 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
863 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
864 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
865 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
866 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
867 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
872 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
873 <field name="name">Payroll Register</field>
874 <field name="res_model">hr.payroll.register</field>
875 <field name="view_type">form</field>
876 <field name="view_mode">tree,form</field>
879 action="action_view_hr_payroll_register_form"
880 id="hr_menu_payroll_register"
881 parent="menu_hr_root_payroll"
885 Contribution Register
887 <record id="hr_contibution_register_tree" model="ir.ui.view">
888 <field name="name">hr.contibution.register.tree</field>
889 <field name="model">hr.contibution.register</field>
890 <field name="type">tree</field>
891 <field name="arch" type="xml">
892 <tree string="Contribution Registers">
893 <field name="name" select="1"/>
894 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
895 <field name="monthly_total_by_emp"/>
896 <field name="monthly_total_by_comp"/>
900 <record id="hr_contibution_register_form" model="ir.ui.view">
901 <field name="name">hr.contibution.register.form</field>
902 <field name="model">hr.contibution.register</field>
903 <field name="type">form</field>
904 <field name="arch" type="xml">
905 <form string="Contribution">
906 <field name="name" select="1"/>
907 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
908 <notebook colspan="4">
909 <page string="Contribution Lines">
910 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
911 <tree string="Register Lines" editable="top">
914 <field name="employee_id"/>
915 <field name="emp_deduction"/>
916 <field name="comp_deduction"/>
917 <field name="total"/>
921 <page string="Description">
922 <separator colspan="4" string="Description"/>
923 <field name="note" colspan="4" nolabel="1"/>
926 <group col="2" colspan="2" name="Month">
927 <separator colspan="2" string="Month"/>
928 <field name="monthly_total_by_emp"/>
929 <field name="monthly_total_by_comp"/>
934 <record id="action_contibution_register_form" model="ir.actions.act_window">
935 <field name="name">Contribution Register</field>
936 <field name="res_model">hr.contibution.register</field>
937 <field name="view_type">form</field>
938 <field name="view_id" ref="hr_contibution_register_tree"/>
941 id="menu_action_hr_contibution_register_form"
942 action="action_contibution_register_form"
943 parent="payroll_configure"
945 <record id="hr_contibution_register_line_form" model="ir.ui.view">
946 <field name="name">hr.contibution.register.line.form</field>
947 <field name="model">hr.contibution.register.line</field>
948 <field name="type">form</field>
949 <field name="arch" type="xml">
950 <form string="Contribution">
953 <field name="employee_id"/>
954 <field name="emp_deduction"/>
955 <field name="comp_deduction"/>
956 <field name="total"/>
964 <act_window name="Payslips"
965 domain="[('employee_id', '=', active_id)]"
966 res_model="hr.payslip"
967 src_model="hr.employee"
968 view_id ="view_hr_payslip_tree"
969 id="act_hr_employee_payslip_list"
970 groups="base.group_hr_manager"/>