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" groups="base.group_hr_manager"/>
9 <!-- Passport Views -->
10 <record id="hr_passport_form" model="ir.ui.view">
11 <field name="name">hr.passport.form</field>
12 <field name="model">hr.passport</field>
13 <field name="type">form</field>
14 <field name="arch" type="xml">
15 <form string="Passport">
16 <group col="6" colspan="4">
17 <field name="name" select="1" colspan="4"/>
18 <field name="employee_id" />
20 <group col="2" colspan="2">
21 <separator string="Country & Address" colspan="4"/>
22 <field name="country_id" select="1"/>
23 <field name="address_id" select="1"/>
25 <group col="2" colspan="2">
26 <separator string="Valid From" colspan="2"/>
27 <field name="date_issue" select="1"/>
28 <field name="date_expire" select="1"/>
30 <notebook colspan="4">
31 <page string="Description">
32 <separator string="Description" colspan="2"/>
33 <field name="note" colspan="4" nolabel="1"/>
35 <page string="Contracts">
36 <field name="contracts_ids" colspan="4" nolabel="1"/>
42 <record id="hr_passport_tree" model="ir.ui.view">
43 <field name="name">hr.passport.tree</field>
44 <field name="model">hr.passport</field>
45 <field name="type">tree</field>
46 <field name="arch" type="xml">
47 <tree string="Passport">
49 <field name="employee_id" />
50 <field name="address_id"/>
51 <field name="country_id" />
52 <field name="date_expire"/>
53 <field name="date_issue" />
58 <record id="view_hr_passport_filter" model="ir.ui.view">
59 <field name="name">hr.passport.select</field>
60 <field name="model">hr.passport</field>
61 <field name="type">search</field>
62 <field name="arch" type="xml">
63 <search string="Search Passport">
64 <group col="8" colspan="4">
66 <field name="employee_id"/>
67 <field name="country_id"/>
68 <field name="address_id"/>
71 <group col="8" colspan="4" expand="0" string="Group By...">
72 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
73 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
74 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
75 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
80 <record id="action_hr_passport_tree" model="ir.actions.act_window">
81 <field name="name">All Passports</field>
82 <field name="res_model">hr.passport</field>
83 <field name="view_type">form</field>
84 <field name="view_id" ref="hr_passport_tree"/>
85 <field name="search_view_id" ref="view_hr_passport_filter"/>
87 <menuitem id="passport_configure" parent="hr.menu_hr_configuration" name="Passport"/>
89 id="menu_action_hr_passport_tree"
90 action="action_hr_passport_tree"
91 parent="passport_configure"
93 <!-- End Passport Views -->
95 <!-- Employee View -->
96 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
97 <field name="name">hr.hr.employee.view.form2</field>
98 <field name="model">hr.employee</field>
99 <field name="inherit_id" ref="hr.view_employee_form"/>
100 <field name="arch" type="xml">
101 <page string="Notes" position="before">
102 <page string="Contracts">
103 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
104 <tree string="Contracts">
106 <field name="job_id"/>
107 <field name="date_start"/>
108 <field name="date_end"/>
109 <field name="working_hours"/>
110 <field name="wage_type_id"/>
113 <form string="Contracts">
114 <group colspan="4" col="6">
115 <field name="name" select="1"/>
116 <field name="job_id"/>
119 <field name="wage_type_id" widget="selection"/>
120 <field name="type_id" widget="selection"/>
122 <notebook colspan="4">
123 <page string="Main Data">
124 <group col="2" colspan="2">
125 <separator colspan="2" string="Duration"/>
126 <field name="date_start" select="1"/>
127 <field name="date_end" select="1"/>
128 <field name="working_hours"/>
130 <group col="2" colspan="2">
131 <separator colspan="2" string="Advantages"/>
132 <field name="struct_id" select="1"/>
133 <field name="advantages_net"/>
134 <field name="advantages_gross"/>
135 <field name="advantages" nolabel="1" colspan="2"/>
138 <page string="Work Permit">
139 <group col="2" colspan="2">
140 <separator colspan="2" string="Passport"/>
141 <field name="passport_id"/>
143 <group col="2" colspan="2">
144 <separator colspan="2" string="Valid for"/>
145 <field name="visa_no"/>
146 <field name="permit_no"/>
147 <field name="visa_expire"/>
151 <separator colspan="4" string="Notes"/>
152 <field colspan="4" name="notes" nolabel="1"/>
156 <page string="Miscellaneous">
157 <group colspan="2" col="2">
158 <separator string="Personal Info" colspan="2"/>
159 <field name="pan_no" select="1"/>
160 <!-- <field name="bank_account"/>-->
161 <field name="bank_account_id"/>
162 <field name="place_of_birth"/>
163 <field name="children"/>
165 <group colspan="2" col="2">
166 <separator string="Job Info" colspan="2"/>
167 <field name="manager" select="1"/>
168 <field name="vehicle" select="1"/>
169 <field name="vehicle_distance" select="1"/>
171 <group col="2" colspan="2">
172 <separator colspan="2" string="ESI Information"/>
173 <field name="esi_account" string="Account"/>
174 <field name="hospital_id" string="Hospital"/>
175 <field name="medic_exam" select="1" string="Medical Examination"/>
176 <field name="esp_account" select="1"/>
178 <group col="2" colspan="2">
179 <separator colspan="2" string="Providend Fund"/>
180 <field name="pf_account" string="Account"/>
181 <field name="pg_joining" string="Join Date"/>
184 <page string="Salary Structure">
185 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
186 <tree string="Salary Structure" editable="bottom">
187 <field name="category_id" on_change="onchange_category(category_id)"/>
188 <field name="sequence"/>
192 <field name="amount_type"/>
193 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
194 <field name="account_id"/>
195 <field name="analytic_account_id" groups="base.group_extended"/>
199 <page string="Accounting">
200 <field name="property_bank_account"/>
201 <field name="salary_account"/>
202 <field name="employee_account"/>
203 <field name="analytic_account" groups="base.group_extended"/>
204 <field name="slip_ids" colspan="4" nolabel="1"/>
210 <record id="view_employee_passport_form" model="ir.ui.view">
211 <field name="name">hr.employee.passport.form</field>
212 <field name="model">hr.employee</field>
213 <field name="type">form</field>
214 <field name="inherit_id" ref="hr.view_employee_form"/>
215 <field name="arch" type="xml">
216 <field name="otherid" position="after">
217 <field name="passport_id"/>
221 <!-- End Employee View -->
223 <!-- Contract View -->
224 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
225 <field name="name">hr.contract.view.form</field>
226 <field name="model">hr.contract</field>
227 <field name="type">form</field>
228 <field name="arch" type="xml">
229 <form string="Contract">
230 <group colspan="4" col="6">
231 <field name="name" select="1"/>
232 <field name="employee_id" select="1"/>
233 <field name="job_id"/>
235 <field name="wage_type_id" widget="selection"/>
236 <field name="type_id" widget="selection"/>
238 <notebook colspan="4">
239 <page string="Main Data">
240 <group col="2" colspan="2">
241 <separator colspan="2" string="Duration"/>
242 <field name="date_start" select="1"/>
243 <field name="date_end" select="1"/>
244 <field name="working_hours"/>
245 <field name="working_days_per_week" select="1"/>
247 <group col="2" colspan="2">
248 <separator colspan="2" string="Advantages"/>
249 <field name="struct_id" select="1"/>
250 <field name="advantages_net"/>
251 <field name="advantages_gross"/>
252 <field name="advantages" nolabel="1" colspan="2"/>
255 <page string="Work Permit">
256 <group col="2" colspan="2">
257 <separator colspan="2" string="Passport"/>
258 <field name="passport_id"/>
260 <group col="2" colspan="2">
261 <separator colspan="2" string="Valid for"/>
262 <field name="visa_no"/>
263 <field name="permit_no"/>
264 <field name="visa_expire"/>
268 <separator colspan="4" string="Notes"/>
269 <field colspan="4" name="notes" nolabel="1"/>
273 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
274 <!-- End Contract View-->
276 <!-- Salary structure -->
277 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
278 <field name="name">hr.payroll.structure.tree</field>
279 <field name="model">hr.payroll.structure</field>
280 <field name="type">tree</field>
281 <field name="arch" type="xml">
282 <tree string="Employee Function">
285 <field name="line_ids"/>
286 <field name="company_id"/>
291 <record id="view_hr_employee_grade_form" model="ir.ui.view">
292 <field name="name">hr.payroll.structure.form</field>
293 <field name="model">hr.payroll.structure</field>
294 <field name="type">form</field>
295 <field name="arch" type="xml">
296 <form string="Employee Function">
297 <group col="6" colspan="4">
298 <field name="name" colspan="4" select="1"/>
299 <field name="code" select="1"/>
300 <field name="account_id" select="1" groups="base.group_extended"/>
301 <field name="company_id"/>
303 <notebook colspan="4">
304 <page string="Salary Structure">
305 <field name="line_ids" nolabel="1" colspan="4"/>
312 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
313 <field name="name">Salary Structure</field>
314 <field name="res_model">hr.payroll.structure</field>
315 <field name="view_type">form</field>
316 <field name="view_id" ref="view_hr_employee_grade_tree"/>
319 id="menu_hr_employee_function"
320 action="action_view_hr_employee_grade_form"
321 parent="payroll_configure"
323 <!-- End Salary structure -->
325 <!-- Holiday Status -->
326 <record model="ir.ui.view" id="view_holiday_status_form1">
327 <field name="name">hr.holidays.status.inherit</field>
328 <field name="model">hr.holidays.status</field>
329 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
330 <field name="type">form</field>
331 <field name="arch" type="xml">
332 <field name="color_name" position="after">
333 <group col="2" colspan="2">
334 <separator colspan="4" string="Payroll Accounting"/>
335 <field name="company_id" widget="selection" select="2"/>
337 <field name="analytic_account_id" groups="base.group_extended"/>
338 <field name="account_id"/>
340 <group col="2" colspan="2">
341 <separator colspan="4" string="Payroll Configurtion"/>
343 <field name="head_id"/>
348 <!-- End Holiday Status -->
350 <!-- Payslip Line -->
351 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
352 <field name="name">hr.payslip.line.tree</field>
353 <field name="model">hr.payslip.line</field>
354 <field name="type">tree</field>
355 <field name="arch" type="xml">
356 <tree string="Salary Structure" editable="bottom">
357 <field name="category_id" on_change="onchange_category(category_id)"/>
358 <field name="sequence"/>
362 <field name="amount_type"/>
363 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
364 <field name="account_id"/>
365 <field name="analytic_account_id" groups="base.group_extended"/>
369 <record id="view_hr_payslip_line_form" model="ir.ui.view">
370 <field name="name">hr.payslip.line.form</field>
371 <field name="model">hr.payslip.line</field>
372 <field name="type">form</field>
373 <field name="arch" type="xml">
374 <form string="Payslip Line">
375 <group col="6" colspan="4">
376 <field name="name" colspan="4" select="1"/>
377 <field name="code" select="1"/>
378 <field name="slip_id" select="1"/>
379 <field name="employee_id"/>
380 <field name="function_id"/>
382 <group col="2" colspan="2">
383 <separator colspan="4" string="Calculations"/>
384 <field name="category_id" on_change="onchange_category(category_id)"/>
386 <field name="amount_type"/>
387 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
388 <field name="sequence"/>
390 <group col="2" colspan="2">
391 <separator colspan="4" string="Accounting Informations"/>
392 <field name="account_id"/>
393 <field name="analytic_account_id" groups="base.group_extended"/>
394 <separator colspan="4" string="Company contribution"/>
395 <field name="company_contrib"/>
397 <notebook colspan="4">
398 <page string="Function">
399 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
400 <tree string="Function Arguments" editable="bottom">
402 <field name="sequence"/>
403 <field name="from_val"/>
404 <field name="to_val"/>
405 <field name="amount_type"/>
406 <field name="value"/>
410 <page string="Description">
411 <separator colspan="4" string="Description"/>
412 <field name="note" colspan="4" nolabel="1"/>
419 <record id="view_hr_payslip_tree" model="ir.ui.view">
420 <field name="name">hr.payslip.tree</field>
421 <field name="model">hr.payslip</field>
422 <field name="type">tree</field>
423 <field name="arch" type="xml">
424 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
425 <field name="number"/>
426 <field name="employee_id"/>
427 <field name="register_id" invisible="1"/>
430 <field name="grows"/>
432 <field name="state"/>
433 <field name="company_id"/>
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" groups="base.group_extended"/>
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="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-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
526 <separator orientation="vertical"/>
528 <field name="employee_id"/>
529 <field name="number"/>
533 <group col="8" colspan="4" expand="0" string="Group By...">
534 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
535 <separator orientation="vertical"/>
536 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
537 <separator orientation="vertical"/>
538 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
539 <separator orientation="vertical"/>
540 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
545 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
546 <field name="name">Employee Payslip</field>
547 <field name="res_model">hr.payslip</field>
548 <field name="view_type">form</field>
549 <field name="view_id" ref="view_hr_payslip_tree"/>
550 <field name="search_view_id" ref="view_hr_payslip_filter"/>
552 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
556 <!-- Payment Heads -->
557 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
558 <field name="name">hr.allounce.deduction.categoty.form</field>
559 <field name="model">hr.allounce.deduction.categoty</field>
560 <field name="type">form</field>
561 <field name="arch" type="xml">
562 <form string="Salary Heads">
563 <group col="6" colspan="6">
564 <field name="name" select="1"/>
565 <field name="code" select="1"/>
566 <field name="type" select="1"/>
567 <group col="2" colspan="4">
568 <separator colspan="4" string="Based on"/>
569 <field name="base" colspan="4" nolabel="1"/>
571 <group col="2" colspan="2">
572 <separator colspan="4" string="Dynamic Computation"/>
573 <field name="condition"/>
574 <field name="sequence"/>
577 <notebook colspan="4">
578 <page string="Description">
579 <field name="note" colspan="4" nolabel="1"/>
581 <page string="Contribution">
582 <field name="contribute_ids" colspan="4" nolabel="1" height="300"/>
588 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
589 <field name="name">hr.allounce.deduction.categoty.tree</field>
590 <field name="model">hr.allounce.deduction.categoty</field>
591 <field name="type">tree</field>
592 <field name="arch" type="xml">
593 <tree string="Salary Heads">
598 <field name="condition"/>
599 <field name="sequence"/>
604 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
605 <field name="name">hr.allounce.deduction.categoty.select</field>
606 <field name="model">hr.allounce.deduction.categoty</field>
607 <field name="type">search</field>
608 <field name="arch" type="xml">
609 <search string="Salary Heads">
610 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
611 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
612 <separator orientation="vertical"/>
613 <field name="name" select="1"/>
614 <field name="code" select="1"/>
617 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
618 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
619 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
625 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
626 <field name="name">Salary Heads</field>
627 <field name="res_model">hr.allounce.deduction.categoty</field>
628 <field name="view_type">form</field>
629 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
630 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
633 id="menu_hr_allounce_deduction_tree"
634 action="hr_allounce_deduction_tree"
635 parent="payroll_configure"
637 <!-- End Payment Heads -->
639 <!-- Company Contribution -->
640 <record id="hr_company_contribution_form" model="ir.ui.view">
641 <field name="name">company.contribution.form</field>
642 <field name="model">company.contribution</field>
643 <field name="type">form</field>
644 <field name="arch" type="xml">
645 <form string="Company Contribution">
646 <group col="6" colspan="6">
647 <field name="name" select="1"/>
648 <field name="code" select="1"/>
649 <field name="category_id"/>
651 <group col="2" colspan="2">
652 <separator colspan="2" string="Contributions"/>
653 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
654 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
655 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
657 <group col="2" colspan="2">
658 <separator colspan="2" string="Other Information"/>
659 <field name="company_id" select="1"/>
660 <field name="active" select="1"/>
661 <!-- <field name="include_in_salary" />-->
662 <!-- <field name="account_id" attrs="{'required': [('include_in_salary','=',True)]}"/>-->
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-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
718 <filter string="Category" name="category_id" icon="terp-go-month" 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 <!-- Contract Form-->
738 <!-- <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">-->
739 <!-- <field name="name">hr.contract.view.form</field>-->
740 <!-- <field name="model">hr.contract</field>-->
741 <!-- <field name="type">form</field>-->
742 <!-- <field name="arch" type="xml">-->
743 <!-- <form string="Contract">-->
744 <!-- <field name="employee_id"/>-->
745 <!-- <separator colspan="4" string="General Information"/>-->
746 <!-- <field colspan="4" name="name" select="1"/>-->
748 <!-- <separator colspan="4" string="Contract Duration"/>-->
749 <!-- <field name="function"/>-->
750 <!-- <field name="working_hours_per_day"/>-->
751 <!-- <field name="working_days_per_week"/>-->
752 <!-- <field name="date_start" select="1"/>-->
753 <!-- <field name="date_end" select="1"/>-->
755 <!-- <separator colspan="4" string="Salary"/>-->
756 <!-- <field name="wage_type_id"/>-->
757 <!-- <field name="wage"/>-->
759 <!-- <separator colspan="4" string="Notes"/>-->
760 <!-- <field colspan="4" name="notes" nolabel="1"/>-->
762 <!-- <separator colspan="4" string="Passport and Visa"/>-->
763 <!-- <field name="permit_no"/>-->
764 <!-- <field name="passport_id"/>-->
765 <!-- <field name="visa_no"/>-->
766 <!-- <field name="visa_expire"/>-->
770 <!-- <record id="action_hr_contract" model="ir.actions.act_window">-->
771 <!-- <field name="name">Employee Contract</field>-->
772 <!-- <field name="res_model">hr.contract</field>-->
773 <!-- <field name="view_type">form</field>-->
774 <!-- <field name="view_mode">form,tree</field>-->
777 <!-- action="action_hr_contract" -->
778 <!-- name="Employee Contract" -->
779 <!-- id="hr_menu_contract" -->
780 <!-- parent="payroll_configure"-->
783 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
784 <field name="name">hr.payroll.advice.tree</field>
785 <field name="model">hr.payroll.advice</field>
786 <field name="type">tree</field>
787 <field name="arch" type="xml">
788 <tree string="Bank Advice">
789 <field name="name" select="1"/>
790 <field name="date" select="1"/>
791 <field name="number" select="1"/>
792 <field name="company_id"/>
797 <record id="view_hr_bank_advice_form" model="ir.ui.view">
798 <field name="name">hr.payroll.advice.form</field>
799 <field name="model">hr.payroll.advice</field>
800 <field name="type">form</field>
801 <field name="arch" type="xml">
802 <form string="Bank Advice">
803 <group col="6" colspan="4">
804 <field name="name" colspan="4" select="1"/>
805 <field name="account_id" select="1"/>
807 <field name="date" select="1"/>
808 <field name="number" select="1"/>
809 <field name="register_id"/>
811 <notebook colspan="4">
812 <page string="Paymeny Lines">
813 <field name="line_ids" colspan="4" nolabel="1">
814 <tree string="Payment Lines" editable="bottom">
815 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
817 <field name="amount"/>
818 <field name="bysal"/>
823 <page string="Letter Content">
824 <group colspan="4" col="6">
825 <field name="company_id" on_change="onchange_company_id(company_id)"/>
826 <field name="chaque_nos"/>
829 <separator colspan="4" string="Letter Details"/>
830 <field name="note" colspan="4" nolabel="1"/>
833 <group col="6" colspan="6">
834 <field name="state"/>
835 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
836 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
837 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
842 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
843 <field name="name">Payment Advice</field>
844 <field name="res_model">hr.payroll.advice</field>
845 <field name="view_type">form</field>
846 <field name="view_mode">tree,form</field>
847 <field name="view_id" ref="view_hr_bank_advice_tree"/>
850 action="action_view_hr_bank_advice_tree"
851 id="hr_menu_payment_advice"
852 parent="menu_hr_root_payroll"
855 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
856 <field name="name">hr.payroll.register.tree</field>
857 <field name="model">hr.payroll.register</field>
858 <field name="type">tree</field>
859 <field name="arch" type="xml">
860 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
861 <field name="number"/>
864 <field name="journal_id"/>
865 <field name="bank_journal_id"/>
866 <field name="state"/>
870 <record id="view_hr_payroll_register_form" model="ir.ui.view">
871 <field name="name">hr.payroll.register.form</field>
872 <field name="model">hr.payroll.register</field>
873 <field name="type">form</field>
874 <field name="arch" type="xml">
875 <form string="Payroll Register">
876 <group col="6" colspan="4">
877 <field name="name" select="1"/>
878 <field name="date" select="1"/>
879 <field name="number" select="1"/>
880 <field name="journal_id"/>
881 <field name="bank_journal_id"/>
882 <field name="active"/>
884 <notebook colspan="4">
885 <page string="Payslips">
886 <field name="line_ids" colspan="4" nolabel="1">
887 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
888 <field name="number"/>
889 <field name="employee_id"/>
892 <field name="basic"/>
893 <field name="allounce"/>
894 <field name="grows"/>
895 <field name="deduction"/>
897 <field name="state"/>
900 <group col="2" colspan="2">
901 <separator colspan="4" string="Allowance / Deduction"/>
902 <field name="allounce"/>
903 <field name="deduction"/>
905 <group col="2" colspan="2">
906 <separator colspan="4" string="Salary Information"/>
907 <field name="grows"/>
912 <group col="8" colspan="4">
913 <field name="state"/>
914 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
915 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
916 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
917 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
918 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
919 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
924 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
925 <field name="name">Payroll Register</field>
926 <field name="res_model">hr.payroll.register</field>
927 <field name="view_type">form</field>
928 <field name="view_mode">tree,form</field>
931 action="action_view_hr_payroll_register_form"
932 id="hr_menu_payroll_register"
933 parent="menu_hr_root_payroll"
937 Contribution Register
939 <record id="hr_contibution_register_tree" model="ir.ui.view">
940 <field name="name">hr.contibution.register.tree</field>
941 <field name="model">hr.contibution.register</field>
942 <field name="type">tree</field>
943 <field name="arch" type="xml">
944 <tree string="Contribution Registers">
945 <field name="name" select="1"/>
946 <field name="company_id" select="1"/>
947 <field name="monthly_total_by_emp"/>
948 <field name="monthly_total_by_comp"/>
949 <field name="yearly_total_by_emp"/>
950 <field name="yearly_total_by_comp"/>
954 <record id="hr_contibution_register_form" model="ir.ui.view">
955 <field name="name">hr.contibution.register.form</field>
956 <field name="model">hr.contibution.register</field>
957 <field name="type">form</field>
958 <field name="arch" type="xml">
959 <form string="Contribution">
960 <field name="name" select="1"/>
961 <field name="account_id"/>
962 <field name="analytic_account_id" groups="base.group_extended"/>
963 <field name="company_id" select="1"/>
964 <notebook colspan="4">
965 <page string="Contribution Lines">
966 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
967 <tree string="Register Lines" editable="top">
969 <field name="employee_id"/>
970 <field name="period_id"/>
971 <field name="emp_deduction"/>
972 <field name="comp_deduction"/>
973 <field name="total"/>
977 <page string="Description">
978 <separator colspan="4" string="Description"/>
979 <field name="note" colspan="4" nolabel="1"/>
982 <group col="2" colspan="2">
983 <separator colspan="4" string="Year"/>
984 <field name="yearly_total_by_emp"/>
985 <field name="yearly_total_by_comp"/>
987 <group col="2" colspan="2">
988 <separator colspan="2" string="Month"/>
989 <field name="monthly_total_by_emp"/>
990 <field name="monthly_total_by_comp"/>
995 <record id="action_contibution_register_form" model="ir.actions.act_window">
996 <field name="name">Contibution Register</field>
997 <field name="res_model">hr.contibution.register</field>
998 <field name="view_type">form</field>
999 <field name="view_id" ref="hr_contibution_register_tree"/>
1002 id="menu_action_hr_contibution_register_form"
1003 action="action_contibution_register_form"
1004 parent="payroll_configure"
1006 <record id="hr_contibution_register_line_form" model="ir.ui.view">
1007 <field name="name">hr.contibution.register.line.form</field>
1008 <field name="model">hr.contibution.register.line</field>
1009 <field name="type">form</field>
1010 <field name="arch" type="xml">
1011 <form string="Contribution">
1012 <field name="name"/>
1013 <field name="code"/>
1014 <field name="employee_id"/>
1015 <field name="period_id"/>
1016 <field name="emp_deduction"/>
1017 <field name="comp_deduction"/>
1018 <field name="total"/>
1023 <record id="hr_payslip_line_condition_tree" model="ir.ui.view">
1024 <field name="name">hr.payslip.line.condition.tree</field>
1025 <field name="model">hr.payslip.line.condition</field>
1026 <field name="type">tree</field>
1027 <field name="arch" type="xml">
1028 <form string="Condition">
1029 <field name="name"/>
1030 <field name="date_start"/>
1031 <field name="date_end"/>
1032 <field name="state"/>