1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll"/>
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"/>
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">
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">
65 <separator orientation="vertical"/>
67 <field name="employee_id"/>
68 <field name="country_id"/>
69 <field name="address_id"/>
72 <group col="8" colspan="4" expand="0" string="Group By...">
73 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
74 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
75 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
76 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
81 <record id="action_hr_passport_tree" model="ir.actions.act_window">
82 <field name="name">All Passports</field>
83 <field name="res_model">hr.passport</field>
84 <field name="view_type">form</field>
85 <field name="view_id" ref="hr_passport_tree"/>
86 <field name="search_view_id" ref="view_hr_passport_filter"/>
88 <menuitem id="passport_configure" parent="hr.menu_hr_configuration" name="Passport"/>
90 id="menu_action_hr_passport_tree"
91 action="action_hr_passport_tree"
92 parent="passport_configure"
94 <!-- End Passport Views -->
96 <!-- Employee View -->
97 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
98 <field name="name">hr.hr.employee.view.form2</field>
99 <field name="model">hr.employee</field>
100 <field name="inherit_id" ref="hr.view_employee_form"/>
101 <field name="arch" type="xml">
102 <notebook position="inside">
103 <page string="Contracts">
104 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
105 <tree string="Contracts">
107 <field name="job_id"/>
108 <field name="date_start"/>
109 <field name="date_end"/>
110 <field name="working_hours"/>
111 <field name="wage_type_id"/>
114 <form string="Contract">
115 <group colspan="4" col="6">
116 <field name="name" select="1"/>
117 <field name="job_id"/>
120 <field name="wage_type_id" widget="selection"/>
121 <field name="type_id" widget="selection"/>
123 <notebook colspan="4">
124 <page string="Main Data">
125 <group col="2" colspan="2">
126 <separator colspan="2" string="Duration"/>
127 <field name="date_start" select="1"/>
128 <field name="date_end" select="1"/>
129 <field name="working_hours"/>
131 <group col="2" colspan="2">
132 <separator colspan="2" string="Advantages"/>
133 <field name="struct_id" select="1"/>
134 <field name="advantages_net"/>
135 <field name="advantages_gross"/>
136 <field name="advantages" nolabel="1" colspan="2"/>
139 <page string="Work Permit">
140 <group col="2" colspan="2">
141 <separator colspan="2" string="Passport"/>
142 <field name="passport_id"/>
144 <group col="2" colspan="2">
145 <separator colspan="2" string="Valid for"/>
146 <field name="visa_no"/>
147 <field name="permit_no"/>
148 <field name="visa_expire"/>
152 <separator colspan="4" string="Notes"/>
153 <field colspan="4" name="notes" nolabel="1"/>
157 <page string="Miscelleanous">
158 <group colspan="2" col="2">
159 <separator string="Personal Info" colspan="2"/>
160 <field name="pan_no" select="1"/>
161 <!-- <field name="bank_account"/>-->
162 <field name="bank_account_id"/>
163 <field name="place_of_birth"/>
164 <field name="children"/>
166 <group colspan="2" col="2">
167 <separator string="Job Info" colspan="2"/>
168 <field name="manager" select="1"/>
169 <field name="vehicle" select="1"/>
170 <field name="vehicle_distance" select="1"/>
171 <field name="medic_exam" select="1"/>
173 <group col="2" colspan="2">
174 <separator colspan="2" string="ESI Information"/>
175 <field name="esi_account" string="Account"/>
176 <field name="hospital_id" string="Hospital"/>
177 <field name="medic_exam" select="1" string="Medical Examination"/>
178 <field name="esp_account" select="1"/>
180 <group col="2" colspan="2">
181 <separator colspan="2" string="Providend Fund"/>
182 <field name="pf_account" string="Account"/>
183 <field name="pg_joining" string="Join Date"/>
186 <page string="Salary Structure">
187 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
188 <tree string="Salary Structure" editable="bottom">
189 <field name="category_id" on_change="onchange_category(category_id)"/>
190 <field name="sequence"/>
194 <field name="amount_type"/>
195 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
196 <field name="account_id"/>
197 <field name="analytic_account_id"/>
201 <page string="Accounting">
202 <field name="property_bank_account"/>
203 <field name="salary_account"/>
204 <field name="employee_account"/>
205 <field name="analytic_account"/>
206 <field name="slip_ids" colspan="4" nolabel="1"/>
212 <record id="view_employee_passport_form" model="ir.ui.view">
213 <field name="name">hr.employee.passport.form</field>
214 <field name="model">hr.employee</field>
215 <field name="type">form</field>
216 <field name="inherit_id" ref="hr.view_employee_form"/>
217 <field name="arch" type="xml">
218 <field name="otherid" position="after">
219 <field name="passport_id"/>
223 <!-- End Employee View -->
225 <!-- Contract View -->
226 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
227 <field name="name">hr.contract.view.form</field>
228 <field name="model">hr.contract</field>
229 <field name="type">form</field>
230 <field name="arch" type="xml">
231 <form string="Contract">
232 <group colspan="4" col="6">
233 <field name="name" select="1"/>
234 <field name="employee_id" select="1"/>
235 <field name="job_id"/>
237 <field name="wage_type_id" widget="selection"/>
238 <field name="type_id" widget="selection"/>
240 <notebook colspan="4">
241 <page string="Main Data">
242 <group col="2" colspan="2">
243 <separator colspan="2" string="Duration"/>
244 <field name="date_start" select="1"/>
245 <field name="date_end" select="1"/>
246 <field name="working_hours"/>
247 <field name="working_days_per_week" select="1"/>
249 <group col="2" colspan="2">
250 <separator colspan="2" string="Advantages"/>
251 <field name="struct_id" select="1"/>
252 <field name="advantages_net"/>
253 <field name="advantages_gross"/>
254 <field name="advantages" nolabel="1" colspan="2"/>
257 <page string="Work Permit">
258 <group col="2" colspan="2">
259 <separator colspan="2" string="Passport"/>
260 <field name="passport_id"/>
262 <group col="2" colspan="2">
263 <separator colspan="2" string="Valid for"/>
264 <field name="visa_no"/>
265 <field name="permit_no"/>
266 <field name="visa_expire"/>
270 <separator colspan="4" string="Notes"/>
271 <field colspan="4" name="notes" nolabel="1"/>
275 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
276 <!-- End Contract View-->
278 <!-- Salary structure -->
279 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
280 <field name="name">hr.payroll.structure.tree</field>
281 <field name="model">hr.payroll.structure</field>
282 <field name="type">tree</field>
283 <field name="arch" type="xml">
284 <tree string="Employee Function">
287 <field name="line_ids"/>
288 <field name="company_id"/>
293 <record id="view_hr_employee_grade_form" model="ir.ui.view">
294 <field name="name">hr.payroll.structure.form</field>
295 <field name="model">hr.payroll.structure</field>
296 <field name="type">form</field>
297 <field name="arch" type="xml">
298 <form string="Employee Function">
299 <group col="6" colspan="4">
300 <field name="name" colspan="4" select="1"/>
301 <field name="code" select="1"/>
302 <field name="account_id" select="1"/>
303 <field name="company_id"/>
305 <notebook colspan="4">
306 <page string="Salary Structure">
307 <field name="line_ids" nolabel="1" colspan="4"/>
314 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
315 <field name="name">Salary Structure</field>
316 <field name="res_model">hr.payroll.structure</field>
317 <field name="view_type">form</field>
318 <field name="view_id" ref="view_hr_employee_grade_tree"/>
321 id="menu_hr_employee_function"
322 action="action_view_hr_employee_grade_form"
323 parent="payroll_configure"
325 <!-- End Salary structure -->
327 <!-- Holiday Status -->
328 <record model="ir.ui.view" id="view_holiday_status_form1">
329 <field name="name">hr.holidays.status.inherit</field>
330 <field name="model">hr.holidays.status</field>
331 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
332 <field name="type">form</field>
333 <field name="arch" type="xml">
334 <field name="color_name" position="after">
335 <group col="2" colspan="2">
336 <separator colspan="4" string="Payroll Accounting"/>
337 <field name="company_id" widget="selection" select="2"/>
339 <field name="analytic_account_id"/>
340 <field name="account_id"/>
342 <group col="2" colspan="2">
343 <separator colspan="4" string="Payroll Configurtion"/>
345 <field name="head_id"/>
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)"/>
366 <field name="account_id"/>
367 <field name="analytic_account_id"/>
371 <record id="view_hr_payslip_line_form" model="ir.ui.view">
372 <field name="name">hr.payslip.line.form</field>
373 <field name="model">hr.payslip.line</field>
374 <field name="type">form</field>
375 <field name="arch" type="xml">
376 <form string="Payslip Line">
377 <group col="6" colspan="4">
378 <field name="name" colspan="4" select="1"/>
379 <field name="code" select="1"/>
380 <field name="slip_id" select="1"/>
381 <field name="employee_id"/>
382 <field name="function_id"/>
384 <group col="2" colspan="2">
385 <separator colspan="4" string="Calculations"/>
386 <field name="category_id" on_change="onchange_category(category_id)"/>
388 <field name="amount_type"/>
389 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
390 <field name="sequence"/>
392 <group col="2" colspan="2">
393 <separator colspan="4" string="Accounting Informations"/>
394 <field name="account_id"/>
395 <field name="analytic_account_id"/>
396 <separator colspan="4" string="Company contribution"/>
397 <field name="company_contrib"/>
399 <notebook colspan="4">
400 <page string="Function">
401 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
402 <tree string="Function Arguments" editable="bottom">
404 <field name="sequence"/>
405 <field name="from_val"/>
406 <field name="to_val"/>
407 <field name="amount_type"/>
408 <field name="value"/>
412 <page string="Description">
413 <separator colspan="4" string="Description"/>
414 <field name="note" colspan="4" nolabel="1"/>
421 <record id="view_hr_payslip_tree" model="ir.ui.view">
422 <field name="name">hr.payslip.tree</field>
423 <field name="model">hr.payslip</field>
424 <field name="type">tree</field>
425 <field name="arch" type="xml">
426 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
427 <field name="number"/>
428 <field name="employee_id"/>
431 <field name="grows"/>
433 <field name="state"/>
438 <record id="view_hr_payslip_form" model="ir.ui.view">
439 <field name="name">hr.payslip.form</field>
440 <field name="model">hr.payslip</field>
441 <field name="type">form</field>
442 <field name="arch" type="xml">
443 <form string="Payslip">
444 <group col="6" colspan="4">
445 <field name="employee_id"/>
447 <field name="number" select="1"/>
448 <field name="journal_id"/>
449 <field name="bank_journal_id" domain="[('type','=','cash')]"/>
452 <notebook colspan="4">
453 <page string="Salary Detail">
454 <field name="line_ids" colspan="4" nolabel="1">
455 <tree string="Salary Structure" editable="bottom">
456 <field name="category_id" on_change="onchange_category(category_id)"/>
457 <field name="sequence"/>
461 <field name="amount_type"/>
462 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
463 <field name="total"/>
464 <field name="account_id"/>
465 <field name="analytic_account_id"/>
469 <group col="6" colspan="4">
470 <separator string="Computation Overview" colspan="6"/>
471 <field name="working_days"/>
472 <field name="holiday_days"/>
473 <field name="worked_days"/>
475 <field name="basic_before_leaves"/>
476 <field name="leaves"/>
477 <field name="basic"/>
479 <field name="allounce"/>
480 <field name="deduction"/>
481 <field name="other_pay"/>
483 <field name="grows"/>
485 <field name="total_pay"/>
488 <page string="Accounting Details">
489 <group col="2" colspan="1">
490 <separator colspan="2" string="Other Informations"/>
491 <field name="paid" readonly="1"/>
492 <field name="company_id"/>
493 <field name="register_id"/>
494 <field name="deg_id"/>
495 <field name="contract_id" domain="[('employee_id','=',employee_id)]"/>
498 <separator colspan="4" string="Description"/>
499 <field name="note" colspan="4" nolabel="1"/>
502 <group col="10" colspan="4">
503 <field name="state"/>
504 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
505 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
506 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
507 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
508 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
509 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
510 <button string="Re-Open" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="draft,hr_check,confirm"/>
511 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
516 <record id="view_hr_payslip_filter" model="ir.ui.view">
517 <field name="name">hr.payslip.select</field>
518 <field name="model">hr.payslip</field>
519 <field name="type">search</field>
520 <field name="arch" type="xml">
521 <search string="Search Payslips">
522 <group col="8" colspan="4">
523 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
524 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
525 <separator orientation="vertical"/>
526 <filter icon="terp-account" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
528 <field name="employee_id"/>
529 <field name="number"/>
533 <group col="8" colspan="4" expand="0" string="Group By...">
534 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'register_id':self}"/>
535 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'employee_id':self}"/>
536 <filter string="Periods" name="period_id" icon="terp-go-month" context="{'period_id':self}"/>
537 <filter string="Staes" name="state" icon="terp-stock_effects-object-colorize" context="{'state':self}"/>
542 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
543 <field name="name">Employee Payslip</field>
544 <field name="res_model">hr.payslip</field>
545 <field name="view_type">form</field>
546 <field name="view_id" ref="view_hr_payslip_tree"/>
547 <field name="search_view_id" ref="view_hr_payslip_filter"/>
549 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
553 <!-- Payment Heads -->
554 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
555 <field name="name">hr.allounce.deduction.categoty.form</field>
556 <field name="model">hr.allounce.deduction.categoty</field>
557 <field name="type">form</field>
558 <field name="arch" type="xml">
559 <form string="Salary Heads">
560 <group col="6" colspan="6">
561 <field name="name" select="1"/>
562 <field name="code" select="1"/>
563 <field name="type" select="1"/>
564 <group col="2" colspan="4">
565 <separator colspan="4" string="Based on"/>
566 <field name="base" colspan="4" nolabel="1"/>
568 <group col="2" colspan="2">
569 <separator colspan="4" string="Dynamic Computation"/>
570 <field name="condition"/>
571 <field name="sequence"/>
574 <notebook colspan="4">
575 <page string="Description">
576 <field name="note" colspan="4" nolabel="1"/>
578 <page string="Contribution">
579 <field name="contribute_ids" colspan="4" nolabel="1" height="300"/>
585 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
586 <field name="name">hr.allounce.deduction.categoty.tree</field>
587 <field name="model">hr.allounce.deduction.categoty</field>
588 <field name="type">tree</field>
589 <field name="arch" type="xml">
590 <tree string="Salary Heads">
595 <field name="condition"/>
596 <field name="sequence"/>
601 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
602 <field name="name">hr.allounce.deduction.categoty.select</field>
603 <field name="model">hr.allounce.deduction.categoty</field>
604 <field name="type">search</field>
605 <field name="arch" type="xml">
606 <search string="Salary Heads">
607 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
608 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
609 <separator orientation="vertical"/>
610 <field name="name" select="1"/>
611 <field name="code" select="1"/>
614 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
615 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
616 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
622 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
623 <field name="name">Salary Heads</field>
624 <field name="res_model">hr.allounce.deduction.categoty</field>
625 <field name="view_type">form</field>
626 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
627 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
630 id="menu_hr_allounce_deduction_tree"
631 action="hr_allounce_deduction_tree"
632 parent="payroll_configure"
634 <!-- End Payment Heads -->
636 <!-- Company Contribution -->
637 <record id="hr_company_contribution_form" model="ir.ui.view">
638 <field name="name">company.contribution.form</field>
639 <field name="model">company.contribution</field>
640 <field name="type">form</field>
641 <field name="arch" type="xml">
642 <form string="Company Contribution">
643 <group col="6" colspan="6">
644 <field name="name" select="1"/>
645 <field name="code" select="1"/>
646 <field name="category_id"/>
648 <group col="2" colspan="2">
649 <separator colspan="2" string="Contributions"/>
650 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
651 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
652 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
654 <group col="2" colspan="2">
655 <separator colspan="2" string="Other Information"/>
656 <field name="company_id" select="1"/>
657 <field name="active" select="1"/>
658 <!-- <field name="include_in_salary" />-->
659 <!-- <field name="account_id" attrs="{'required': [('include_in_salary','=',True)]}"/>-->
661 <notebook colspan="4">
662 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
663 <field name="line_ids" colspan="4" nolabel="1">
664 <tree string="Function Arguments" editable="bottom">
666 <field name="sequence"/>
667 <field name="from_val"/>
668 <field name="to_val"/>
669 <field name="amount_type"/>
670 <field name="value"/>
674 <page string="Description">
675 <field name="note" colspan="4" nolabel="1"/>
681 <record id="hr_company_contribution_tree" model="ir.ui.view">
682 <field name="name">company.contribution.tree</field>
683 <field name="model">company.contribution</field>
684 <field name="type">tree</field>
685 <field name="arch" type="xml">
686 <tree string="Company Contribution">
689 <field name="contribute_per"/>
690 <field name="amount_type"/>
691 <field name="register_id"/>
692 <field name="category_id"/>
697 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
698 <field name="name">company.contribution.select</field>
699 <field name="model">company.contribution</field>
700 <field name="type">search</field>
701 <field name="arch" type="xml">
702 <search string="Search Company Contribution">
703 <group col="8" colspan="4">
704 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
705 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
706 <separator orientation="vertical"/>
709 <field name="contribute_per"/>
710 <field name="register_id"/>
713 <group col="8" colspan="4" expand="0" string="Group By...">
714 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
715 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
720 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
721 <field name="name">Company Contributions</field>
722 <field name="res_model">company.contribution</field>
723 <field name="view_type">form</field>
724 <field name="view_id" ref="hr_company_contribution_tree"/>
725 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
728 id="menu_hr_company_contribution_tree"
729 action="action_hr_company_contribution_tree"
730 parent="payroll_configure"
732 <!-- End Company Contribution -->
734 <!-- Contract Form-->
735 <!-- <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">-->
736 <!-- <field name="name">hr.contract.view.form</field>-->
737 <!-- <field name="model">hr.contract</field>-->
738 <!-- <field name="type">form</field>-->
739 <!-- <field name="arch" type="xml">-->
740 <!-- <form string="Contract">-->
741 <!-- <field name="employee_id"/>-->
742 <!-- <separator colspan="4" string="General Information"/>-->
743 <!-- <field colspan="4" name="name" select="1"/>-->
745 <!-- <separator colspan="4" string="Contract Duration"/>-->
746 <!-- <field name="function"/>-->
747 <!-- <field name="working_hours_per_day"/>-->
748 <!-- <field name="working_days_per_week"/>-->
749 <!-- <field name="date_start" select="1"/>-->
750 <!-- <field name="date_end" select="1"/>-->
752 <!-- <separator colspan="4" string="Salary"/>-->
753 <!-- <field name="wage_type_id"/>-->
754 <!-- <field name="wage"/>-->
756 <!-- <separator colspan="4" string="Notes"/>-->
757 <!-- <field colspan="4" name="notes" nolabel="1"/>-->
759 <!-- <separator colspan="4" string="Passport and Visa"/>-->
760 <!-- <field name="permit_no"/>-->
761 <!-- <field name="passport_id"/>-->
762 <!-- <field name="visa_no"/>-->
763 <!-- <field name="visa_expire"/>-->
767 <!-- <record id="action_hr_contract" model="ir.actions.act_window">-->
768 <!-- <field name="name">Employee Contract</field>-->
769 <!-- <field name="res_model">hr.contract</field>-->
770 <!-- <field name="view_type">form</field>-->
771 <!-- <field name="view_mode">form,tree</field>-->
774 <!-- action="action_hr_contract" -->
775 <!-- name="Employee Contract" -->
776 <!-- id="hr_menu_contract" -->
777 <!-- parent="payroll_configure"-->
780 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
781 <field name="name">hr.payroll.advice.tree</field>
782 <field name="model">hr.payroll.advice</field>
783 <field name="type">tree</field>
784 <field name="arch" type="xml">
785 <tree string="Bank Advice">
786 <field name="name" select="1"/>
787 <field name="date" select="1"/>
788 <field name="number" select="1"/>
789 <field name="company_id"/>
794 <record id="view_hr_bank_advice_form" model="ir.ui.view">
795 <field name="name">hr.payroll.advice.form</field>
796 <field name="model">hr.payroll.advice</field>
797 <field name="type">form</field>
798 <field name="arch" type="xml">
799 <form string="Bank Advice">
800 <group col="6" colspan="4">
801 <field name="name" colspan="4" select="1"/>
802 <field name="account_id" select="1"/>
804 <field name="date" select="1"/>
805 <field name="number" select="1"/>
806 <field name="register_id"/>
808 <notebook colspan="4">
809 <page string="Paymeny Lines">
810 <field name="line_ids" colspan="4" nolabel="1">
811 <tree string="Payment Lines" editable="bottom">
812 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
814 <field name="amount"/>
815 <field name="bysal"/>
819 <field name="company_id"/>
820 <field name="chaque_nos"/>
822 <page string="Letter Content">
823 <separator colspan="4" string="Letter Details"/>
824 <field name="note" colspan="4" nolabel="1"/>
827 <group col="6" colspan="6">
828 <field name="state"/>
829 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
830 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
831 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
836 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
837 <field name="name">Payment Advice</field>
838 <field name="res_model">hr.payroll.advice</field>
839 <field name="view_type">form</field>
840 <field name="view_mode">tree,form</field>
841 <field name="view_id" ref="view_hr_bank_advice_tree"/>
844 action="action_view_hr_bank_advice_tree"
845 id="hr_menu_payment_advice"
846 parent="menu_hr_root_payroll"
849 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
850 <field name="name">hr.payroll.register.tree</field>
851 <field name="model">hr.payroll.register</field>
852 <field name="type">tree</field>
853 <field name="arch" type="xml">
854 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
855 <field name="number"/>
858 <field name="journal_id"/>
859 <field name="bank_journal_id"/>
860 <field name="state"/>
864 <record id="view_hr_payroll_register_form" model="ir.ui.view">
865 <field name="name">hr.payroll.register.form</field>
866 <field name="model">hr.payroll.register</field>
867 <field name="type">form</field>
868 <field name="arch" type="xml">
869 <form string="Payroll Register">
870 <group col="6" colspan="4">
871 <field name="name" select="1"/>
872 <field name="date" select="1"/>
873 <field name="number" select="1"/>
874 <field name="journal_id"/>
875 <field name="bank_journal_id"/>
876 <field name="active"/>
878 <notebook colspan="4">
879 <page string="Payslips">
880 <field name="line_ids" colspan="4" nolabel="1">
881 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
882 <field name="number"/>
883 <field name="employee_id"/>
886 <field name="basic"/>
887 <field name="allounce"/>
888 <field name="grows"/>
889 <field name="deduction"/>
891 <field name="state"/>
894 <group col="2" colspan="2">
895 <separator colspan="4" string="Allowance / Deduction"/>
896 <field name="allounce"/>
897 <field name="deduction"/>
899 <group col="2" colspan="2">
900 <separator colspan="4" string="Salary Information"/>
901 <field name="grows"/>
906 <group col="8" colspan="4">
907 <field name="state"/>
908 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
909 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
910 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
911 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
912 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
913 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
918 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
919 <field name="name">Payroll Register</field>
920 <field name="res_model">hr.payroll.register</field>
921 <field name="view_type">form</field>
922 <field name="view_mode">tree,form</field>
925 action="action_view_hr_payroll_register_form"
926 id="hr_menu_payroll_register"
927 parent="menu_hr_root_payroll"
931 Contribution Register
933 <record id="hr_contibution_register_tree" model="ir.ui.view">
934 <field name="name">hr.contibution.register.tree</field>
935 <field name="model">hr.contibution.register</field>
936 <field name="type">tree</field>
937 <field name="arch" type="xml">
938 <tree string="Contribution Registers">
939 <field name="name" select="1"/>
940 <field name="company_id" select="1"/>
941 <field name="monthly_total_by_emp"/>
942 <field name="monthly_total_by_comp"/>
943 <field name="yearly_total_by_emp"/>
944 <field name="yearly_total_by_comp"/>
948 <record id="hr_contibution_register_form" model="ir.ui.view">
949 <field name="name">hr.contibution.register.form</field>
950 <field name="model">hr.contibution.register</field>
951 <field name="type">form</field>
952 <field name="arch" type="xml">
953 <form string="Contribution">
954 <field name="name" select="1"/>
955 <field name="account_id"/>
956 <field name="analytic_account_id"/>
957 <field name="company_id" select="1"/>
958 <notebook colspan="4">
959 <page string="Contribution Lines">
960 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
961 <tree string="Register Lines" editable="top">
963 <field name="employee_id"/>
964 <field name="period_id"/>
965 <field name="emp_deduction"/>
966 <field name="comp_deduction"/>
967 <field name="total"/>
971 <page string="Description">
972 <separator colspan="4" string="Description"/>
973 <field name="note" colspan="4" nolabel="1"/>
976 <group col="2" colspan="2">
977 <separator colspan="4" string="Year"/>
978 <field name="yearly_total_by_emp"/>
979 <field name="yearly_total_by_comp"/>
981 <group col="2" colspan="2">
982 <separator colspan="2" string="Month"/>
983 <field name="monthly_total_by_emp"/>
984 <field name="monthly_total_by_comp"/>
989 <record id="action_contibution_register_form" model="ir.actions.act_window">
990 <field name="name">Contibution Register</field>
991 <field name="res_model">hr.contibution.register</field>
992 <field name="view_type">form</field>
993 <field name="view_id" ref="hr_contibution_register_tree"/>
996 id="menu_action_hr_contibution_register_form"
997 action="action_contibution_register_form"
998 parent="payroll_configure"
1000 <record id="hr_contibution_register_line_form" model="ir.ui.view">
1001 <field name="name">hr.contibution.register.line.form</field>
1002 <field name="model">hr.contibution.register.line</field>
1003 <field name="type">form</field>
1004 <field name="arch" type="xml">
1005 <form string="Contribution">
1006 <field name="name"/>
1007 <field name="code"/>
1008 <field name="employee_id"/>
1009 <field name="period_id"/>
1010 <field name="emp_deduction"/>
1011 <field name="comp_deduction"/>
1012 <field name="total"/>
1017 <record id="hr_payslip_line_condition_tree" model="ir.ui.view">
1018 <field name="name">hr.payslip.line.condition.tree</field>
1019 <field name="model">hr.payslip.line.condition</field>
1020 <field name="type">tree</field>
1021 <field name="arch" type="xml">
1022 <form string="Condition">
1023 <field name="name"/>
1024 <field name="date_start"/>
1025 <field name="date_end"/>
1026 <field name="state"/>