1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll" groups="base.group_system,group_hr_payroll" sequence="9"/>
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 <!-- End Passport Views -->
89 <!-- Employee View -->
90 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
91 <field name="name">hr.hr.employee.view.form2</field>
92 <field name="model">hr.employee</field>
93 <field name="inherit_id" ref="hr.view_employee_form"/>
94 <field name="arch" type="xml">
95 <page string="Personal Information" position="after">
96 <page string="Contracts">
97 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
98 <tree string="Contracts">
100 <field name="job_id"/>
101 <field name="date_start"/>
102 <field name="date_end"/>
103 <field name="working_hours"/>
104 <field name="wage_type_id"/>
107 <form string="Contracts">
108 <group colspan="4" col="6">
109 <field name="name" select="1"/>
110 <field name="job_id"/>
113 <field name="wage_type_id" widget="selection"/>
114 <field name="type_id" widget="selection"/>
116 <notebook colspan="4">
117 <page string="Main Data">
118 <group col="2" colspan="2">
119 <separator colspan="2" string="Duration"/>
120 <field name="date_start" select="1"/>
121 <field name="date_end" select="1"/>
122 <field name="working_hours"/>
124 <group col="2" colspan="2">
125 <separator colspan="2" string="Advantages"/>
126 <field name="struct_id" select="1"/>
127 <field name="advantages_net"/>
128 <field name="advantages_gross"/>
129 <field name="advantages" nolabel="1" colspan="2"/>
132 <page string="Work Permit">
133 <group col="2" colspan="2">
134 <separator colspan="2" string="Passport"/>
135 <field name="passport_id"/>
137 <group col="2" colspan="2">
138 <separator colspan="2" string="Valid for"/>
139 <field name="visa_no"/>
140 <field name="permit_no"/>
141 <field name="visa_expire"/>
145 <separator colspan="4" string="Notes"/>
146 <field colspan="4" name="notes" nolabel="1"/>
150 <page string="Miscellaneous">
151 <group colspan="2" col="2">
152 <separator string="Personal Info" colspan="2"/>
153 <field name="pan_no" select="1"/>
154 <field name="bank_account_id"/>
155 <field name="place_of_birth"/>
156 <field name="children"/>
158 <group colspan="2" col="2">
159 <separator string="Job Info" colspan="2"/>
160 <field name="manager" select="1"/>
161 <field name="vehicle" select="1"/>
162 <field name="vehicle_distance" select="1"/>
164 <group col="2" colspan="2">
165 <separator colspan="2" string="ESI Information"/>
166 <field name="esi_account" string="Account"/>
167 <field name="hospital_id" string="Hospital"/>
168 <field name="medic_exam" select="1" string="Medical Examination"/>
169 <field name="esp_account" select="1"/>
171 <group col="2" colspan="2">
172 <separator colspan="2" string="Providend Fund"/>
173 <field name="pf_account" string="Account"/>
174 <field name="pg_joining" string="Join Date"/>
177 <page string="Salary Structure">
178 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
179 <tree string="Salary Structure" editable="bottom">
180 <field name="category_id" on_change="onchange_category(category_id)"/>
181 <field name="sequence"/>
185 <field name="amount_type"/>
186 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
187 <field name="account_id"/>
188 <field name="analytic_account_id" groups="base.group_extended"/>
192 <page string="Accounting">
193 <field name="property_bank_account"/>
194 <field name="salary_account"/>
195 <field name="employee_account"/>
196 <field name="analytic_account" groups="base.group_extended"/>
197 <field name="slip_ids" colspan="4" nolabel="1"/>
203 <record id="view_employee_passport_form" model="ir.ui.view">
204 <field name="name">hr.employee.passport.form</field>
205 <field name="model">hr.employee</field>
206 <field name="type">form</field>
207 <field name="inherit_id" ref="hr.view_employee_form"/>
208 <field name="arch" type="xml">
209 <field name="otherid" position="after">
210 <field name="passport_id"/>
214 <!-- End Employee View -->
216 <!-- Contract View -->
217 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
218 <field name="name">hr.contract.view.form</field>
219 <field name="model">hr.contract</field>
220 <field name="type">form</field>
221 <field name="arch" type="xml">
222 <form string="Contract">
223 <group colspan="4" col="6">
224 <field name="name" select="1"/>
225 <field name="employee_id" select="1"/>
226 <field name="job_id"/>
228 <field name="wage_type_id" widget="selection"/>
229 <field name="type_id" widget="selection"/>
231 <notebook colspan="4">
232 <page string="Main Data">
233 <group col="2" colspan="2">
234 <separator colspan="2" string="Duration"/>
235 <field name="date_start" select="1"/>
236 <field name="date_end" select="1"/>
237 <field name="working_hours"/>
238 <field name="working_days_per_week" select="1"/>
240 <group col="2" colspan="2">
241 <separator colspan="2" string="Advantages"/>
242 <field name="struct_id" select="1"/>
243 <field name="advantages_net"/>
244 <field name="advantages_gross"/>
245 <field name="advantages" nolabel="1" colspan="2"/>
248 <page string="Work Permit">
249 <group col="2" colspan="2">
250 <separator colspan="2" string="Passport"/>
251 <field name="passport_id"/>
253 <group col="2" colspan="2">
254 <separator colspan="2" string="Valid for"/>
255 <field name="visa_no"/>
256 <field name="permit_no"/>
257 <field name="visa_expire"/>
261 <separator colspan="4" string="Notes"/>
262 <field colspan="4" name="notes" nolabel="1"/>
266 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
267 <!-- End Contract View-->
269 <!-- Salary structure -->
270 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
271 <field name="name">hr.payroll.structure.tree</field>
272 <field name="model">hr.payroll.structure</field>
273 <field name="type">tree</field>
274 <field name="arch" type="xml">
275 <tree string="Employee Function">
278 <field name="line_ids"/>
279 <field name="company_id"/>
284 <record id="view_hr_employee_grade_form" model="ir.ui.view">
285 <field name="name">hr.payroll.structure.form</field>
286 <field name="model">hr.payroll.structure</field>
287 <field name="type">form</field>
288 <field name="arch" type="xml">
289 <form string="Employee Function">
290 <group col="6" colspan="4">
291 <field name="name" colspan="4" select="1"/>
292 <field name="code" select="1"/>
293 <field name="account_id" select="1" groups="base.group_extended"/>
294 <field name="company_id"/>
296 <notebook colspan="4">
297 <page string="Salary Structure">
298 <field name="line_ids" nolabel="1" colspan="4"/>
305 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
306 <field name="name">Salary Structure</field>
307 <field name="res_model">hr.payroll.structure</field>
308 <field name="view_type">form</field>
309 <field name="view_id" ref="view_hr_employee_grade_tree"/>
312 id="menu_hr_employee_function"
313 action="action_view_hr_employee_grade_form"
314 parent="payroll_configure"
316 <!-- End Salary structure -->
318 <!-- Holiday Status -->
319 <record model="ir.ui.view" id="view_holiday_status_form1">
320 <field name="name">hr.holidays.status.inherit</field>
321 <field name="model">hr.holidays.status</field>
322 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
323 <field name="type">form</field>
324 <field name="arch" type="xml">
325 <field name="color_name" position="after">
326 <group col="2" colspan="2">
327 <separator colspan="4" string="Payroll Accounting"/>
328 <field name="company_id" widget="selection" select="2"/>
330 <field name="analytic_account_id" groups="base.group_extended"/>
331 <field name="account_id"/>
333 <group col="2" colspan="2">
334 <separator colspan="4" string="Payroll Configurtion"/>
336 <field name="head_id"/>
341 <!-- End Holiday Status -->
343 <!-- Payslip Line -->
344 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
345 <field name="name">hr.payslip.line.tree</field>
346 <field name="model">hr.payslip.line</field>
347 <field name="type">tree</field>
348 <field name="arch" type="xml">
349 <tree string="Salary Structure" editable="bottom">
350 <field name="category_id" on_change="onchange_category(category_id)"/>
351 <field name="sequence"/>
355 <field name="amount_type"/>
356 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
357 <field name="account_id"/>
358 <field name="analytic_account_id" groups="base.group_extended"/>
362 <record id="view_hr_payslip_line_form" model="ir.ui.view">
363 <field name="name">hr.payslip.line.form</field>
364 <field name="model">hr.payslip.line</field>
365 <field name="type">form</field>
366 <field name="arch" type="xml">
367 <form string="Payslip Line">
368 <group col="6" colspan="4">
369 <field name="name" colspan="4" select="1"/>
370 <field name="code" select="1"/>
371 <field name="slip_id" select="1"/>
372 <field name="employee_id"/>
373 <field name="function_id"/>
375 <group col="2" colspan="2">
376 <separator colspan="4" string="Calculations"/>
377 <field name="category_id" on_change="onchange_category(category_id)"/>
379 <field name="amount_type"/>
380 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
381 <field name="sequence"/>
383 <group col="2" colspan="2">
384 <separator colspan="4" string="Accounting Informations"/>
385 <field name="account_id"/>
386 <field name="analytic_account_id" groups="base.group_extended"/>
387 <separator colspan="4" string="Company contribution"/>
388 <field name="company_contrib"/>
390 <notebook colspan="4">
391 <page string="Function">
392 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
393 <tree string="Function Arguments" editable="bottom">
395 <field name="sequence"/>
396 <field name="from_val"/>
397 <field name="to_val"/>
398 <field name="amount_type"/>
399 <field name="value"/>
403 <page string="Description">
404 <separator colspan="4" string="Description"/>
405 <field name="note" colspan="4" nolabel="1"/>
412 <record id="view_hr_payslip_tree" model="ir.ui.view">
413 <field name="name">hr.payslip.tree</field>
414 <field name="model">hr.payslip</field>
415 <field name="type">tree</field>
416 <field name="arch" type="xml">
417 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
418 <field name="number"/>
419 <field name="employee_id"/>
420 <field name="register_id" invisible="1"/>
423 <field name="grows"/>
425 <field name="state"/>
426 <field name="company_id"/>
431 <record id="view_hr_payslip_form" model="ir.ui.view">
432 <field name="name">hr.payslip.form</field>
433 <field name="model">hr.payslip</field>
434 <field name="type">form</field>
435 <field name="arch" type="xml">
436 <form string="Payslip">
437 <group col="6" colspan="4">
438 <field name="employee_id"/>
440 <field name="number" select="1"/>
441 <field name="journal_id"/>
442 <field name="bank_journal_id" domain="[('type','=','cash')]"/>
445 <notebook colspan="4">
446 <page string="Salary Detail">
447 <field name="line_ids" colspan="4" nolabel="1">
448 <tree string="Salary Structure" editable="bottom">
449 <field name="category_id" on_change="onchange_category(category_id)"/>
450 <field name="sequence"/>
454 <field name="amount_type"/>
455 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
456 <field name="total"/>
457 <field name="account_id"/>
458 <field name="analytic_account_id" groups="base.group_extended"/>
462 <group col="6" colspan="4">
463 <separator string="Computation Overview" colspan="6"/>
464 <field name="working_days"/>
465 <field name="holiday_days"/>
466 <field name="worked_days"/>
468 <field name="basic_before_leaves"/>
469 <field name="leaves"/>
470 <field name="basic"/>
472 <field name="allounce"/>
473 <field name="deduction"/>
474 <field name="other_pay"/>
476 <field name="grows"/>
478 <field name="total_pay"/>
481 <page string="Accounting Details">
482 <group col="2" colspan="1">
483 <separator colspan="2" string="Other Informations"/>
484 <field name="paid" readonly="1"/>
485 <field name="company_id"/>
486 <field name="register_id"/>
487 <field name="deg_id"/>
488 <field name="contract_id" domain="[('employee_id','=',employee_id)]"/>
491 <separator colspan="4" string="Description"/>
492 <field name="note" colspan="4" nolabel="1"/>
495 <group col="10" colspan="4">
496 <field name="state"/>
497 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
498 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
499 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
500 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
501 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
502 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
503 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
508 <record id="view_hr_payslip_filter" model="ir.ui.view">
509 <field name="name">hr.payslip.select</field>
510 <field name="model">hr.payslip</field>
511 <field name="type">search</field>
512 <field name="arch" type="xml">
513 <search string="Search Payslips">
514 <group col="8" colspan="4">
515 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
516 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
517 <separator orientation="vertical"/>
518 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
519 <separator orientation="vertical"/>
521 <field name="employee_id"/>
522 <field name="number"/>
526 <group col="8" colspan="4" expand="0" string="Group By...">
527 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
528 <separator orientation="vertical"/>
529 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
530 <separator orientation="vertical"/>
531 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
532 <separator orientation="vertical"/>
533 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
538 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
539 <field name="name">Employee Payslip</field>
540 <field name="res_model">hr.payslip</field>
541 <field name="view_type">form</field>
542 <field name="view_id" ref="view_hr_payslip_tree"/>
543 <field name="search_view_id" ref="view_hr_payslip_filter"/>
545 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
549 <!-- Payment Heads -->
550 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
551 <field name="name">hr.allounce.deduction.categoty.form</field>
552 <field name="model">hr.allounce.deduction.categoty</field>
553 <field name="type">form</field>
554 <field name="arch" type="xml">
555 <form string="Salary Heads">
556 <group col="6" colspan="6">
557 <field name="name" select="1"/>
558 <field name="code" select="1"/>
559 <field name="type" select="1"/>
560 <group col="2" colspan="4">
561 <separator colspan="4" string="Based on"/>
562 <field name="base" colspan="4" nolabel="1"/>
564 <group col="2" colspan="2">
565 <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"/>
574 <page string="Contribution">
575 <field name="contribute_ids" colspan="4" nolabel="1" height="300"/>
581 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
582 <field name="name">hr.allounce.deduction.categoty.tree</field>
583 <field name="model">hr.allounce.deduction.categoty</field>
584 <field name="type">tree</field>
585 <field name="arch" type="xml">
586 <tree string="Salary Heads">
591 <field name="condition"/>
592 <field name="sequence"/>
597 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
598 <field name="name">hr.allounce.deduction.categoty.select</field>
599 <field name="model">hr.allounce.deduction.categoty</field>
600 <field name="type">search</field>
601 <field name="arch" type="xml">
602 <search string="Salary Heads">
603 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
604 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
605 <separator orientation="vertical"/>
606 <field name="name" select="1"/>
607 <field name="code" select="1"/>
610 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
611 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
612 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
618 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
619 <field name="name">Salary Heads</field>
620 <field name="res_model">hr.allounce.deduction.categoty</field>
621 <field name="view_type">form</field>
622 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
623 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
626 id="menu_hr_allounce_deduction_tree"
627 action="hr_allounce_deduction_tree"
628 parent="payroll_configure"
630 <!-- End Payment Heads -->
632 <!-- Company Contribution -->
633 <record id="hr_company_contribution_form" model="ir.ui.view">
634 <field name="name">company.contribution.form</field>
635 <field name="model">company.contribution</field>
636 <field name="type">form</field>
637 <field name="arch" type="xml">
638 <form string="Company Contribution">
639 <group col="6" colspan="6">
640 <field name="name" select="1"/>
641 <field name="code" select="1"/>
642 <field name="category_id"/>
644 <group col="2" colspan="2">
645 <separator colspan="2" string="Contributions"/>
646 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
647 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
648 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
650 <group col="2" colspan="2">
651 <separator colspan="2" string="Other Information"/>
652 <field name="company_id" select="1"/>
653 <field name="active" select="1"/>
655 <notebook colspan="4">
656 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
657 <field name="line_ids" colspan="4" nolabel="1">
658 <tree string="Function Arguments" editable="bottom">
660 <field name="sequence"/>
661 <field name="from_val"/>
662 <field name="to_val"/>
663 <field name="amount_type"/>
664 <field name="value"/>
668 <page string="Description">
669 <field name="note" colspan="4" nolabel="1"/>
675 <record id="hr_company_contribution_tree" model="ir.ui.view">
676 <field name="name">company.contribution.tree</field>
677 <field name="model">company.contribution</field>
678 <field name="type">tree</field>
679 <field name="arch" type="xml">
680 <tree string="Company Contribution">
683 <field name="contribute_per"/>
684 <field name="amount_type"/>
685 <field name="register_id"/>
686 <field name="category_id"/>
691 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
692 <field name="name">company.contribution.select</field>
693 <field name="model">company.contribution</field>
694 <field name="type">search</field>
695 <field name="arch" type="xml">
696 <search string="Search Company Contribution">
697 <group col="8" colspan="4">
698 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
699 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
700 <separator orientation="vertical"/>
703 <field name="contribute_per"/>
704 <field name="register_id"/>
707 <group col="8" colspan="4" expand="0" string="Group By...">
708 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
709 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
714 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
715 <field name="name">Company Contributions</field>
716 <field name="res_model">company.contribution</field>
717 <field name="view_type">form</field>
718 <field name="view_id" ref="hr_company_contribution_tree"/>
719 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
722 id="menu_hr_company_contribution_tree"
723 action="action_hr_company_contribution_tree"
724 parent="payroll_configure"
726 <!-- End Company Contribution -->
728 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
729 <field name="name">hr.payroll.advice.tree</field>
730 <field name="model">hr.payroll.advice</field>
731 <field name="type">tree</field>
732 <field name="arch" type="xml">
733 <tree string="Bank Advice">
734 <field name="name" select="1"/>
735 <field name="date" select="1"/>
736 <field name="number" select="1"/>
737 <field name="company_id"/>
742 <record id="view_hr_bank_advice_form" model="ir.ui.view">
743 <field name="name">hr.payroll.advice.form</field>
744 <field name="model">hr.payroll.advice</field>
745 <field name="type">form</field>
746 <field name="arch" type="xml">
747 <form string="Bank Advice">
748 <group col="6" colspan="4">
749 <field name="name" colspan="4" select="1"/>
750 <field name="account_id" select="1"/>
752 <field name="date" select="1"/>
753 <field name="number" select="1"/>
754 <field name="register_id"/>
756 <notebook colspan="4">
757 <page string="Paymeny Lines">
758 <field name="line_ids" colspan="4" nolabel="1">
759 <tree string="Payment Lines" editable="bottom">
760 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
762 <field name="amount"/>
763 <field name="bysal"/>
768 <page string="Letter Content">
769 <group colspan="4" col="6">
770 <field name="company_id" on_change="onchange_company_id(company_id)"/>
771 <field name="chaque_nos"/>
774 <separator colspan="4" string="Letter Details"/>
775 <field name="note" colspan="4" nolabel="1"/>
778 <group col="6" colspan="6">
779 <field name="state"/>
780 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
781 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
782 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
787 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
788 <field name="name">Payment Advice</field>
789 <field name="res_model">hr.payroll.advice</field>
790 <field name="view_type">form</field>
791 <field name="view_mode">tree,form</field>
792 <field name="view_id" ref="view_hr_bank_advice_tree"/>
795 action="action_view_hr_bank_advice_tree"
796 id="hr_menu_payment_advice"
797 parent="menu_hr_root_payroll"
800 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
801 <field name="name">hr.payroll.register.tree</field>
802 <field name="model">hr.payroll.register</field>
803 <field name="type">tree</field>
804 <field name="arch" type="xml">
805 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
806 <field name="number"/>
809 <field name="journal_id"/>
810 <field name="bank_journal_id"/>
811 <field name="state"/>
815 <record id="view_hr_payroll_register_form" model="ir.ui.view">
816 <field name="name">hr.payroll.register.form</field>
817 <field name="model">hr.payroll.register</field>
818 <field name="type">form</field>
819 <field name="arch" type="xml">
820 <form string="Payroll Register">
821 <group col="6" colspan="4">
822 <field name="name" select="1"/>
823 <field name="date" select="1"/>
824 <field name="number" select="1"/>
825 <field name="journal_id"/>
826 <field name="bank_journal_id"/>
827 <field name="active"/>
829 <notebook colspan="4">
830 <page string="Payslips">
831 <field name="line_ids" colspan="4" nolabel="1">
832 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
833 <field name="number"/>
834 <field name="employee_id"/>
837 <field name="basic"/>
838 <field name="allounce"/>
839 <field name="grows"/>
840 <field name="deduction"/>
842 <field name="state"/>
845 <group col="2" colspan="2">
846 <separator colspan="4" string="Allowance / Deduction"/>
847 <field name="allounce"/>
848 <field name="deduction"/>
850 <group col="2" colspan="2">
851 <separator colspan="4" string="Salary Information"/>
852 <field name="grows"/>
857 <group col="8" colspan="4">
858 <field name="state"/>
859 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
860 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
861 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
862 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
863 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
864 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
869 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
870 <field name="name">Payroll Register</field>
871 <field name="res_model">hr.payroll.register</field>
872 <field name="view_type">form</field>
873 <field name="view_mode">tree,form</field>
876 action="action_view_hr_payroll_register_form"
877 id="hr_menu_payroll_register"
878 parent="menu_hr_root_payroll"
882 Contribution Register
884 <record id="hr_contibution_register_tree" model="ir.ui.view">
885 <field name="name">hr.contibution.register.tree</field>
886 <field name="model">hr.contibution.register</field>
887 <field name="type">tree</field>
888 <field name="arch" type="xml">
889 <tree string="Contribution Registers">
890 <field name="name" select="1"/>
891 <field name="company_id" select="1"/>
892 <field name="monthly_total_by_emp"/>
893 <field name="monthly_total_by_comp"/>
894 <field name="yearly_total_by_emp"/>
895 <field name="yearly_total_by_comp"/>
899 <record id="hr_contibution_register_form" model="ir.ui.view">
900 <field name="name">hr.contibution.register.form</field>
901 <field name="model">hr.contibution.register</field>
902 <field name="type">form</field>
903 <field name="arch" type="xml">
904 <form string="Contribution">
905 <field name="name" select="1"/>
906 <field name="account_id"/>
907 <field name="analytic_account_id" groups="base.group_extended"/>
908 <field name="company_id" select="1"/>
909 <notebook colspan="4">
910 <page string="Contribution Lines">
911 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
912 <tree string="Register Lines" editable="top">
914 <field name="employee_id"/>
915 <field name="period_id"/>
916 <field name="emp_deduction"/>
917 <field name="comp_deduction"/>
918 <field name="total"/>
922 <page string="Description">
923 <separator colspan="4" string="Description"/>
924 <field name="note" colspan="4" nolabel="1"/>
927 <group col="2" colspan="2">
928 <separator colspan="4" string="Year"/>
929 <field name="yearly_total_by_emp"/>
930 <field name="yearly_total_by_comp"/>
932 <group col="2" colspan="2">
933 <separator colspan="2" string="Month"/>
934 <field name="monthly_total_by_emp"/>
935 <field name="monthly_total_by_comp"/>
940 <record id="action_contibution_register_form" model="ir.actions.act_window">
941 <field name="name">Contibution Register</field>
942 <field name="res_model">hr.contibution.register</field>
943 <field name="view_type">form</field>
944 <field name="view_id" ref="hr_contibution_register_tree"/>
947 id="menu_action_hr_contibution_register_form"
948 action="action_contibution_register_form"
949 parent="payroll_configure"
951 <record id="hr_contibution_register_line_form" model="ir.ui.view">
952 <field name="name">hr.contibution.register.line.form</field>
953 <field name="model">hr.contibution.register.line</field>
954 <field name="type">form</field>
955 <field name="arch" type="xml">
956 <form string="Contribution">
959 <field name="employee_id"/>
960 <field name="period_id"/>
961 <field name="emp_deduction"/>
962 <field name="comp_deduction"/>
963 <field name="total"/>
968 <record id="hr_payslip_line_condition_tree" model="ir.ui.view">
969 <field name="name">hr.payslip.line.condition.tree</field>
970 <field name="model">hr.payslip.line.condition</field>
971 <field name="type">tree</field>
972 <field name="arch" type="xml">
973 <form string="Condition">
975 <field name="date_start"/>
976 <field name="date_end"/>
977 <field name="state"/>