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"/>
7 <menuitem id="menu_hr_payroll_reporting" parent="hr.menu_hr_reporting" name="Payroll"/>
10 <!-- Passport Views -->
11 <record id="hr_passport_form" model="ir.ui.view">
12 <field name="name">hr.passport.form</field>
13 <field name="model">hr.passport</field>
14 <field name="type">form</field>
15 <field name="arch" type="xml">
16 <form string="Passport">
17 <group col="6" colspan="4">
18 <field name="name" select="1" colspan="4"/>
19 <field name="employee_id" />
21 <group col="2" colspan="2">
22 <separator string="Country & Address" colspan="4"/>
23 <field name="country_id" select="1"/>
24 <field name="address_id" select="1"/>
26 <group col="2" colspan="2">
27 <separator string="Valid From" colspan="2"/>
28 <field name="date_issue" select="1"/>
29 <field name="date_expire" select="1"/>
31 <notebook colspan="4">
32 <page string="Description">
33 <separator string="Description" colspan="2"/>
34 <field name="note" colspan="4" nolabel="1"/>
36 <page string="Contracts">
37 <field name="contracts_ids" colspan="4" nolabel="1"/>
43 <record id="hr_passport_tree" model="ir.ui.view">
44 <field name="name">hr.passport.tree</field>
45 <field name="model">hr.passport</field>
46 <field name="type">tree</field>
47 <field name="arch" type="xml">
48 <tree string="Passport">
50 <field name="employee_id" />
51 <field name="address_id"/>
52 <field name="country_id" />
53 <field name="date_expire"/>
54 <field name="date_issue" />
59 <record id="view_hr_passport_filter" model="ir.ui.view">
60 <field name="name">hr.passport.select</field>
61 <field name="model">hr.passport</field>
62 <field name="type">search</field>
63 <field name="arch" type="xml">
64 <search string="Search Passport">
65 <group col="8" colspan="4">
66 <separator orientation="vertical"/>
68 <field name="employee_id"/>
69 <field name="country_id"/>
70 <field name="address_id"/>
73 <group col="8" colspan="4" expand="0" string="Group By...">
74 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
75 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
76 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
77 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
82 <record id="action_hr_passport_tree" model="ir.actions.act_window">
83 <field name="name">All Passports</field>
84 <field name="res_model">hr.passport</field>
85 <field name="view_type">form</field>
86 <field name="view_id" ref="hr_passport_tree"/>
87 <field name="search_view_id" ref="view_hr_passport_filter"/>
89 <menuitem id="passport_configure" parent="hr.menu_hr_configuration" name="Passport"/>
91 id="menu_action_hr_passport_tree"
92 action="action_hr_passport_tree"
93 parent="passport_configure"
95 <!-- End Passport Views -->
97 <!-- Employee View -->
98 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
99 <field name="name">hr.hr.employee.view.form2</field>
100 <field name="model">hr.employee</field>
101 <field name="inherit_id" ref="hr.view_employee_form"/>
102 <field name="arch" type="xml">
103 <notebook position="inside">
104 <page string="Contracts">
105 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
106 <tree string="Contracts">
108 <field name="job_id"/>
109 <field name="date_start"/>
110 <field name="date_end"/>
111 <field name="working_hours"/>
112 <field name="wage_type_id"/>
115 <form string="Contract">
116 <group colspan="4" col="6">
117 <field name="name" select="1"/>
118 <field name="job_id"/>
121 <field name="wage_type_id" widget="selection"/>
122 <field name="type_id" widget="selection"/>
124 <notebook colspan="4">
125 <page string="Main Data">
126 <group col="2" colspan="2">
127 <separator colspan="2" string="Duration"/>
128 <field name="date_start" select="1"/>
129 <field name="date_end" select="1"/>
130 <field name="working_hours"/>
132 <group col="2" colspan="2">
133 <separator colspan="2" string="Advantages"/>
134 <field name="struct_id" select="1"/>
135 <field name="advantages_net"/>
136 <field name="advantages_gross"/>
137 <field name="advantages" nolabel="1" colspan="2"/>
140 <page string="Work Permit">
141 <group col="2" colspan="2">
142 <separator colspan="2" string="Passport"/>
143 <field name="passport_id"/>
145 <group col="2" colspan="2">
146 <separator colspan="2" string="Valid for"/>
147 <field name="visa_no"/>
148 <field name="permit_no"/>
149 <field name="visa_expire"/>
153 <separator colspan="4" string="Notes"/>
154 <field colspan="4" name="notes" nolabel="1"/>
158 <page string="Miscelleanous">
159 <group colspan="2" col="2">
160 <separator string="Personal Info" colspan="2"/>
161 <field name="pan_no" select="1"/>
162 <field name="bank_account"/>
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 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)]"/>
497 <separator colspan="4" string="Description"/>
498 <field name="note" colspan="4" nolabel="1"/>
501 <group col="10" colspan="4">
502 <field name="state"/>
503 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
504 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
505 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
506 <button string="Complete HR Checking" icon="terp-camera_test" name="verify_twice_sheet" states="hr_check"/>
507 <button string="Complete Accountant Checking" icon="terp-camera_test" name="final_verify_sheet" states="accont_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,accont_check,confirm"/>
510 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
515 <record id="view_hr_payslip_filter" model="ir.ui.view">
516 <field name="name">hr.payslip.select</field>
517 <field name="model">hr.payslip</field>
518 <field name="type">search</field>
519 <field name="arch" type="xml">
520 <search string="Search Payslips">
521 <group col="8" colspan="4">
522 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
523 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
524 <separator orientation="vertical"/>
525 <filter icon="terp-account" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
527 <field name="employee_id"/>
528 <field name="number"/>
532 <group col="8" colspan="4" expand="0" string="Group By...">
533 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'register_id':self}"/>
534 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'employee_id':self}"/>
535 <filter string="Periods" name="period_id" icon="terp-go-month" context="{'period_id':self}"/>
536 <filter string="Staes" name="state" icon="terp-stock_effects-object-colorize" context="{'state':self}"/>
541 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
542 <field name="name">Employee Payslip</field>
543 <field name="res_model">hr.payslip</field>
544 <field name="view_type">form</field>
545 <field name="view_id" ref="view_hr_payslip_tree"/>
546 <field name="search_view_id" ref="view_hr_payslip_filter"/>
548 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
552 <!-- Payment Heads -->
553 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
554 <field name="name">hr.allounce.deduction.categoty.form</field>
555 <field name="model">hr.allounce.deduction.categoty</field>
556 <field name="type">form</field>
557 <field name="arch" type="xml">
558 <form string="Salary Heads">
559 <group col="6" colspan="6">
560 <field name="name" select="1"/>
561 <field name="code" select="1"/>
562 <field name="type" select="1"/>
563 <group col="2" colspan="4">
564 <separator colspan="4" string="Dynamic Computation"/>
566 <field name="condition"/>
567 <field name="sequence"/>
570 <notebook colspan="4">
571 <page string="Description">
572 <field name="note" colspan="4" nolabel="1"/>
578 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
579 <field name="name">hr.allounce.deduction.categoty.tree</field>
580 <field name="model">hr.allounce.deduction.categoty</field>
581 <field name="type">tree</field>
582 <field name="arch" type="xml">
583 <tree string="Salary Heads">
588 <field name="condition"/>
589 <field name="sequence"/>
594 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
595 <field name="name">hr.allounce.deduction.categoty.select</field>
596 <field name="model">hr.allounce.deduction.categoty</field>
597 <field name="type">search</field>
598 <field name="arch" type="xml">
599 <search string="Salary Heads">
600 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
601 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
602 <separator orientation="vertical"/>
603 <field name="name" select="1"/>
604 <field name="code" select="1"/>
607 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
608 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
609 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
615 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
616 <field name="name">Salary Heads</field>
617 <field name="res_model">hr.allounce.deduction.categoty</field>
618 <field name="view_type">form</field>
619 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
620 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
623 id="menu_hr_allounce_deduction_tree"
624 action="hr_allounce_deduction_tree"
625 parent="payroll_configure"
627 <!-- End Payment Heads -->
629 <!-- Company Contribution -->
630 <record id="hr_company_contribution_form" model="ir.ui.view">
631 <field name="name">company.contribution.form</field>
632 <field name="model">company.contribution</field>
633 <field name="type">form</field>
634 <field name="arch" type="xml">
635 <form string="Company Contribution">
636 <group col="6" colspan="6">
637 <field name="name" select="1"/>
638 <field name="code" select="1"/>
639 <field name="category_id"/>
640 <field name="company_id" select="1"/>
641 <field name="active" select="1"/>
643 <group col="2" colspan="2">
644 <separator colspan="2" string="Contributions"/>
645 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
646 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
647 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
649 <group col="2" colspan="2">
650 <separator colspan="2" string="Accounts"/>
651 <field name="include_in_salary" />
652 <field name="account_id" attrs="{'required': [('include_in_salary','=',True)]}"/>
654 <notebook colspan="4">
655 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
656 <field name="line_ids" colspan="4" nolabel="1">
657 <tree string="Function Arguments" editable="bottom">
659 <field name="sequence"/>
660 <field name="from_val"/>
661 <field name="to_val"/>
662 <field name="amount_type"/>
663 <field name="value"/>
667 <page string="Description">
668 <field name="note" colspan="4" nolabel="1"/>
674 <record id="hr_company_contribution_tree" model="ir.ui.view">
675 <field name="name">company.contribution.tree</field>
676 <field name="model">company.contribution</field>
677 <field name="type">tree</field>
678 <field name="arch" type="xml">
679 <tree string="Company Contribution">
682 <field name="contribute_per"/>
683 <field name="amount_type"/>
684 <field name="register_id"/>
685 <field name="category_id"/>
690 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
691 <field name="name">company.contribution.select</field>
692 <field name="model">company.contribution</field>
693 <field name="type">search</field>
694 <field name="arch" type="xml">
695 <search string="Search Company Contribution">
696 <group col="8" colspan="4">
697 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
698 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
699 <separator orientation="vertical"/>
702 <field name="contribute_per"/>
703 <field name="register_id"/>
706 <group col="8" colspan="4" expand="0" string="Group By...">
707 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
708 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
713 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
714 <field name="name">Company Contributions</field>
715 <field name="res_model">company.contribution</field>
716 <field name="view_type">form</field>
717 <field name="view_id" ref="hr_company_contribution_tree"/>
718 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
721 id="menu_hr_company_contribution_tree"
722 action="action_hr_company_contribution_tree"
723 parent="payroll_configure"
725 <!-- End Company Contribution -->
727 <!-- Contract Form-->
728 <!-- <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">-->
729 <!-- <field name="name">hr.contract.view.form</field>-->
730 <!-- <field name="model">hr.contract</field>-->
731 <!-- <field name="type">form</field>-->
732 <!-- <field name="arch" type="xml">-->
733 <!-- <form string="Contract">-->
734 <!-- <field name="employee_id"/>-->
735 <!-- <separator colspan="4" string="General Information"/>-->
736 <!-- <field colspan="4" name="name" select="1"/>-->
738 <!-- <separator colspan="4" string="Contract Duration"/>-->
739 <!-- <field name="function"/>-->
740 <!-- <field name="working_hours_per_day"/>-->
741 <!-- <field name="working_days_per_week"/>-->
742 <!-- <field name="date_start" select="1"/>-->
743 <!-- <field name="date_end" select="1"/>-->
745 <!-- <separator colspan="4" string="Salary"/>-->
746 <!-- <field name="wage_type_id"/>-->
747 <!-- <field name="wage"/>-->
749 <!-- <separator colspan="4" string="Notes"/>-->
750 <!-- <field colspan="4" name="notes" nolabel="1"/>-->
752 <!-- <separator colspan="4" string="Passport and Visa"/>-->
753 <!-- <field name="permit_no"/>-->
754 <!-- <field name="passport_id"/>-->
755 <!-- <field name="visa_no"/>-->
756 <!-- <field name="visa_expire"/>-->
760 <!-- <record id="action_hr_contract" model="ir.actions.act_window">-->
761 <!-- <field name="name">Employee Contract</field>-->
762 <!-- <field name="res_model">hr.contract</field>-->
763 <!-- <field name="view_type">form</field>-->
764 <!-- <field name="view_mode">form,tree</field>-->
767 <!-- action="action_hr_contract" -->
768 <!-- name="Employee Contract" -->
769 <!-- id="hr_menu_contract" -->
770 <!-- parent="payroll_configure"-->
773 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
774 <field name="name">hr.payroll.advice.tree</field>
775 <field name="model">hr.payroll.advice</field>
776 <field name="type">tree</field>
777 <field name="arch" type="xml">
778 <tree string="Bank Advice">
779 <field name="name" select="1"/>
780 <field name="date" select="1"/>
781 <field name="number" select="1"/>
782 <field name="company_id"/>
787 <record id="view_hr_bank_advice_form" model="ir.ui.view">
788 <field name="name">hr.payroll.advice.form</field>
789 <field name="model">hr.payroll.advice</field>
790 <field name="type">form</field>
791 <field name="arch" type="xml">
792 <form string="Bank Advice">
793 <group col="6" colspan="4">
794 <field name="name" colspan="4" select="1"/>
795 <field name="account_id" select="1"/>
797 <field name="date" select="1"/>
798 <field name="number" select="1"/>
799 <field name="register_id"/>
801 <notebook colspan="4">
802 <page string="Paymeny Lines">
803 <field name="line_ids" colspan="4" nolabel="1">
804 <tree string="Payment Lines" editable="bottom">
805 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
807 <field name="amount"/>
808 <field name="bysal"/>
812 <field name="company_id"/>
813 <field name="chaque_nos"/>
815 <page string="Letter Content">
816 <separator colspan="4" string="Letter Details"/>
817 <field name="note" colspan="4" nolabel="1"/>
820 <group col="6" colspan="6">
821 <field name="state"/>
822 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
823 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
824 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
829 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
830 <field name="name">Payment Advice</field>
831 <field name="res_model">hr.payroll.advice</field>
832 <field name="view_type">form</field>
833 <field name="view_mode">tree,form</field>
834 <field name="view_id" ref="view_hr_bank_advice_tree"/>
837 action="action_view_hr_bank_advice_tree"
838 id="hr_menu_payment_advice"
839 parent="menu_hr_root_payroll"
842 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
843 <field name="name">hr.payroll.register.tree</field>
844 <field name="model">hr.payroll.register</field>
845 <field name="type">tree</field>
846 <field name="arch" type="xml">
847 <tree string="Payroll Register">
848 <field name="number"/>
851 <field name="journal_id"/>
852 <field name="bank_journal_id"/>
853 <field name="state"/>
857 <record id="view_hr_payroll_register_form" model="ir.ui.view">
858 <field name="name">hr.payroll.register.form</field>
859 <field name="model">hr.payroll.register</field>
860 <field name="type">form</field>
861 <field name="arch" type="xml">
862 <form string="Payroll Register">
863 <group col="6" colspan="4">
864 <field name="name" select="1"/>
865 <field name="date" select="1"/>
866 <field name="number" select="1"/>
867 <field name="journal_id"/>
868 <field name="bank_journal_id"/>
869 <field name="active"/>
871 <notebook colspan="4">
872 <page string="Payslips">
873 <field name="line_ids" colspan="4" nolabel="1">
874 <tree string="Payslip">
875 <field name="number"/>
876 <field name="employee_id"/>
879 <field name="basic"/>
880 <field name="allounce"/>
881 <field name="grows"/>
882 <field name="deduction"/>
884 <field name="state"/>
887 <group col="2" colspan="2">
888 <separator colspan="4" string="Allowance / Deduction"/>
889 <field name="allounce"/>
890 <field name="deduction"/>
892 <group col="2" colspan="2">
893 <separator colspan="4" string="Salary Information"/>
894 <field name="grows"/>
899 <group col="8" colspan="4">
900 <field name="state"/>
901 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
902 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
903 <button string="Complete HR Checking" icon="gtk-apply" name="verify_twice_sheet" type="object" states="hr_check"/>
904 <button string="Complete Accountant Checking" icon="gtk-apply" name="final_verify_sheet" states="accont_check" type="object"/>
905 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
906 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
907 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
912 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
913 <field name="name">Payroll Register</field>
914 <field name="res_model">hr.payroll.register</field>
915 <field name="view_type">form</field>
916 <field name="view_mode">tree,form</field>
919 action="action_view_hr_payroll_register_form"
920 id="hr_menu_payroll_register"
921 parent="menu_hr_root_payroll"
925 Contribution Register
927 <record id="hr_contibution_register_tree" model="ir.ui.view">
928 <field name="name">hr.contibution.register.tree</field>
929 <field name="model">hr.contibution.register</field>
930 <field name="type">tree</field>
931 <field name="arch" type="xml">
932 <tree string="Contribution Registers">
933 <field name="name" select="1"/>
934 <field name="company_id" select="1"/>
935 <field name="monthly_total_by_emp"/>
936 <field name="monthly_total_by_comp"/>
937 <field name="yearly_total_by_emp"/>
938 <field name="yearly_total_by_comp"/>
942 <record id="hr_contibution_register_form" model="ir.ui.view">
943 <field name="name">hr.contibution.register.form</field>
944 <field name="model">hr.contibution.register</field>
945 <field name="type">form</field>
946 <field name="arch" type="xml">
947 <form string="Contribution">
948 <field name="name" select="1"/>
949 <field name="account_id"/>
950 <field name="analytic_account_id"/>
951 <field name="company_id" select="1"/>
952 <notebook colspan="4">
953 <page string="Contribution Lines">
954 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
955 <tree string="Register Lines" editable="top">
957 <field name="employee_id"/>
958 <field name="period_id"/>
959 <field name="emp_deduction"/>
960 <field name="comp_deduction"/>
961 <field name="total"/>
965 <page string="Description">
966 <separator colspan="4" string="Description"/>
967 <field name="note" colspan="4" nolabel="1"/>
970 <group col="2" colspan="2">
971 <separator colspan="4" string="Year"/>
972 <field name="yearly_total_by_emp"/>
973 <field name="yearly_total_by_comp"/>
975 <group col="2" colspan="2">
976 <separator colspan="2" string="Month"/>
977 <field name="monthly_total_by_emp"/>
978 <field name="monthly_total_by_comp"/>
983 <record id="action_contibution_register_form" model="ir.actions.act_window">
984 <field name="name">Contibution Register</field>
985 <field name="res_model">hr.contibution.register</field>
986 <field name="view_type">form</field>
987 <field name="view_id" ref="hr_contibution_register_tree"/>
990 id="menu_action_hr_contibution_register_form"
991 action="action_contibution_register_form"
992 parent="payroll_configure"
994 <record id="hr_contibution_register_line_form" model="ir.ui.view">
995 <field name="name">hr.contibution.register.line.form</field>
996 <field name="model">hr.contibution.register.line</field>
997 <field name="type">form</field>
998 <field name="arch" type="xml">
999 <form string="Contribution">
1000 <field name="name"/>
1001 <field name="code"/>
1002 <field name="employee_id"/>
1003 <field name="period_id"/>
1004 <field name="emp_deduction"/>
1005 <field name="comp_deduction"/>
1006 <field name="total"/>
1011 <record id="hr_payslip_line_condition_tree" model="ir.ui.view">
1012 <field name="name">hr.payslip.line.condition.tree</field>
1013 <field name="model">hr.payslip.line.condition</field>
1014 <field name="type">tree</field>
1015 <field name="arch" type="xml">
1016 <form string="Condition">
1017 <field name="name"/>
1018 <field name="date_start"/>
1019 <field name="date_end"/>
1020 <field name="state"/>