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">
96 <xpath expr="/form/notebook/page[@string='Personal Information']" position="after">
97 <page string="Miscellaneous">
98 <group colspan="2" col="2">
99 <separator string="Personal Info" colspan="2"/>
100 <field name="pan_no" select="1"/>
101 <field name="bank_account_id"/>
102 <field name="place_of_birth"/>
103 <field name="children"/>
105 <group colspan="2" col="2">
106 <separator string="Job Info" colspan="2"/>
107 <field name="manager" select="1"/>
108 <field name="vehicle" select="1"/>
109 <field name="vehicle_distance" select="1"/>
111 <group col="2" colspan="2">
112 <separator colspan="2" string="ESI Information"/>
113 <field name="esi_account" string="Account"/>
114 <field name="hospital_id" string="Hospital"/>
115 <field name="medic_exam" select="1" string="Medical Examination"/>
116 <field name="esp_account" select="1"/>
118 <group col="2" colspan="2">
119 <separator colspan="2" string="Providend Fund"/>
120 <field name="pf_account" string="Account"/>
121 <field name="pg_joining" string="Join Date"/>
124 <page string="Contracts">
125 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
126 <tree string="Contracts">
128 <field name="job_id"/>
129 <field name="date_start"/>
130 <field name="date_end"/>
131 <field name="working_hours"/>
132 <field name="wage_type_id"/>
135 <form string="Contracts">
136 <group colspan="4" col="6">
137 <field name="name" select="1"/>
138 <field name="job_id"/>
141 <field name="wage_type_id" widget="selection"/>
142 <field name="type_id" widget="selection"/>
144 <notebook colspan="4">
145 <page string="Main Data">
146 <group col="2" colspan="2">
147 <separator colspan="2" string="Duration"/>
148 <field name="date_start" select="1"/>
149 <field name="date_end" select="1"/>
150 <field name="working_hours"/>
152 <group col="2" colspan="2">
153 <separator colspan="2" string="Advantages"/>
154 <field name="struct_id" select="1"/>
155 <field name="advantages_net"/>
156 <field name="advantages_gross"/>
157 <field name="advantages" nolabel="1" colspan="2"/>
160 <page string="Work Permit">
161 <group col="2" colspan="2">
162 <separator colspan="2" string="Passport"/>
163 <field name="passport_id"/>
165 <group col="2" colspan="2">
166 <separator colspan="2" string="Valid for"/>
167 <field name="visa_no"/>
168 <field name="permit_no"/>
169 <field name="visa_expire"/>
173 <separator colspan="4" string="Notes"/>
174 <field colspan="4" name="notes" nolabel="1"/>
179 <xpath expr="/form/notebook/page[@string='Notes']" position="before">
180 <page string="Salary Structure">
181 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
182 <tree string="Salary Structure" editable="bottom">
183 <field name="category_id" on_change="onchange_category(category_id)"/>
184 <field name="sequence"/>
188 <field name="amount_type"/>
189 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
190 <field name="account_id"/>
191 <field name="analytic_account_id" groups="base.group_extended"/>
195 <page string="Accounting">
196 <field name="property_bank_account"/>
197 <field name="salary_account"/>
198 <field name="employee_account"/>
199 <field name="analytic_account" groups="base.group_extended"/>
200 <field name="slip_ids" colspan="4" nolabel="1"/>
207 <record id="view_employee_passport_form" model="ir.ui.view">
208 <field name="name">hr.employee.passport.form</field>
209 <field name="model">hr.employee</field>
210 <field name="type">form</field>
211 <field name="inherit_id" ref="hr.view_employee_form"/>
212 <field name="arch" type="xml">
213 <field name="otherid" position="after">
214 <field name="passport_id"/>
218 <!-- End Employee View -->
219 <!-- Contract View -->
220 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
221 <field name="name">hr.contract.view.form</field>
222 <field name="model">hr.contract</field>
223 <field name="type">form</field>
224 <field name="arch" type="xml">
225 <form string="Contract">
226 <group colspan="4" col="6">
227 <field name="name" select="1"/>
228 <field name="employee_id" select="1"/>
229 <field name="job_id"/>
231 <field name="wage_type_id" widget="selection"/>
232 <field name="type_id" widget="selection"/>
234 <notebook colspan="4">
235 <page string="Main Data">
236 <group col="2" colspan="2">
237 <separator colspan="2" string="Duration"/>
238 <field name="date_start" select="1"/>
239 <field name="date_end" select="1"/>
240 <field name="working_hours"/>
241 <field name="working_days_per_week" select="1"/>
243 <group col="2" colspan="2">
244 <separator colspan="2" string="Advantages"/>
245 <field name="struct_id" select="1"/>
246 <field name="advantages_net"/>
247 <field name="advantages_gross"/>
248 <field name="advantages" nolabel="1" colspan="2"/>
251 <page string="Work Permit">
252 <group col="2" colspan="2">
253 <separator colspan="2" string="Passport"/>
254 <field name="passport_id"/>
256 <group col="2" colspan="2">
257 <separator colspan="2" string="Valid for"/>
258 <field name="visa_no"/>
259 <field name="permit_no"/>
260 <field name="visa_expire"/>
264 <separator colspan="4" string="Notes"/>
265 <field colspan="4" name="notes" nolabel="1"/>
269 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
270 <!-- End Contract View-->
272 <!-- Salary structure -->
273 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
274 <field name="name">hr.payroll.structure.tree</field>
275 <field name="model">hr.payroll.structure</field>
276 <field name="type">tree</field>
277 <field name="arch" type="xml">
278 <tree string="Employee Function">
281 <field name="line_ids"/>
282 <field name="company_id"/>
287 <record id="view_hr_employee_grade_form" model="ir.ui.view">
288 <field name="name">hr.payroll.structure.form</field>
289 <field name="model">hr.payroll.structure</field>
290 <field name="type">form</field>
291 <field name="arch" type="xml">
292 <form string="Employee Function">
293 <group col="6" colspan="4">
294 <field name="name" colspan="4" select="1"/>
295 <field name="code" select="1"/>
296 <field name="account_id" select="1" groups="base.group_extended"/>
297 <field name="company_id"/>
299 <notebook colspan="4">
300 <page string="Salary Structure">
301 <field name="line_ids" nolabel="1" colspan="4"/>
308 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
309 <field name="name">Salary Structure</field>
310 <field name="res_model">hr.payroll.structure</field>
311 <field name="view_type">form</field>
312 <field name="view_id" ref="view_hr_employee_grade_tree"/>
315 id="menu_hr_employee_function"
316 action="action_view_hr_employee_grade_form"
317 parent="payroll_configure"
319 <!-- End Salary structure -->
321 <!-- Holiday Status -->
322 <record model="ir.ui.view" id="view_holiday_status_form1">
323 <field name="name">hr.holidays.status.inherit</field>
324 <field name="model">hr.holidays.status</field>
325 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
326 <field name="type">form</field>
327 <field name="arch" type="xml">
328 <field name="color_name" position="after">
329 <group col="2" colspan="2">
330 <separator colspan="4" string="Payroll Accounting"/>
331 <field name="company_id" widget="selection" select="2"/>
333 <field name="analytic_account_id" groups="base.group_extended"/>
334 <field name="account_id"/>
336 <group col="2" colspan="2">
337 <separator colspan="4" string="Payroll Configurtion"/>
339 <field name="head_id"/>
344 <!-- End Holiday Status -->
346 <!-- Payslip Line -->
347 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
348 <field name="name">hr.payslip.line.tree</field>
349 <field name="model">hr.payslip.line</field>
350 <field name="type">tree</field>
351 <field name="arch" type="xml">
352 <tree string="Salary Structure" editable="bottom">
353 <field name="category_id" on_change="onchange_category(category_id)"/>
354 <field name="sequence"/>
358 <field name="amount_type"/>
359 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
360 <field name="account_id"/>
361 <field name="analytic_account_id" groups="base.group_extended"/>
365 <record id="view_hr_payslip_line_form" model="ir.ui.view">
366 <field name="name">hr.payslip.line.form</field>
367 <field name="model">hr.payslip.line</field>
368 <field name="type">form</field>
369 <field name="arch" type="xml">
370 <form string="Payslip Line">
371 <group col="6" colspan="4">
372 <field name="name" colspan="4" select="1"/>
373 <field name="code" select="1"/>
374 <field name="slip_id" select="1"/>
375 <field name="employee_id"/>
376 <field name="function_id"/>
378 <group col="2" colspan="2">
379 <separator colspan="4" string="Calculations"/>
380 <field name="category_id" on_change="onchange_category(category_id)"/>
382 <field name="amount_type"/>
383 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
384 <field name="sequence"/>
386 <group col="2" colspan="2">
387 <separator colspan="4" string="Accounting Informations"/>
388 <field name="account_id"/>
389 <field name="analytic_account_id" groups="base.group_extended"/>
390 <separator colspan="4" string="Company contribution"/>
391 <field name="company_contrib"/>
393 <notebook colspan="4">
394 <page string="Function">
395 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
396 <tree string="Function Arguments" editable="bottom">
398 <field name="sequence"/>
399 <field name="from_val"/>
400 <field name="to_val"/>
401 <field name="amount_type"/>
402 <field name="value"/>
406 <page string="Description">
407 <separator colspan="4" string="Description"/>
408 <field name="note" colspan="4" nolabel="1"/>
415 <record id="view_hr_payslip_tree" model="ir.ui.view">
416 <field name="name">hr.payslip.tree</field>
417 <field name="model">hr.payslip</field>
418 <field name="type">tree</field>
419 <field name="arch" type="xml">
420 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
421 <field name="number"/>
422 <field name="employee_id"/>
423 <field name="register_id" invisible="1"/>
426 <field name="grows"/>
428 <field name="state"/>
429 <field name="company_id"/>
434 <record id="view_hr_payslip_form" model="ir.ui.view">
435 <field name="name">hr.payslip.form</field>
436 <field name="model">hr.payslip</field>
437 <field name="type">form</field>
438 <field name="arch" type="xml">
439 <form string="Payslip">
440 <group col="6" colspan="4">
441 <field name="employee_id"/>
443 <field name="number" select="1"/>
444 <field name="journal_id"/>
445 <field name="bank_journal_id" domain="[('type','=','cash')]"/>
448 <notebook colspan="4">
449 <page string="Salary Detail">
450 <field name="line_ids" colspan="4" nolabel="1">
451 <tree string="Salary Structure" editable="bottom">
452 <field name="category_id" on_change="onchange_category(category_id)"/>
453 <field name="sequence"/>
457 <field name="amount_type"/>
458 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
459 <field name="total"/>
460 <field name="account_id"/>
461 <field name="analytic_account_id" groups="base.group_extended"/>
465 <group col="6" colspan="4">
466 <separator string="Computation Overview" colspan="6"/>
467 <field name="working_days"/>
468 <field name="holiday_days"/>
469 <field name="worked_days"/>
471 <field name="basic_before_leaves"/>
472 <field name="leaves"/>
473 <field name="basic"/>
475 <field name="allounce"/>
476 <field name="deduction"/>
477 <field name="other_pay"/>
479 <field name="grows"/>
481 <field name="total_pay"/>
484 <page string="Accounting Details">
485 <group col="2" colspan="1">
486 <separator colspan="2" string="Other Informations"/>
487 <field name="paid" readonly="1"/>
488 <field name="company_id"/>
489 <field name="register_id"/>
490 <field name="deg_id"/>
491 <field name="contract_id" domain="[('employee_id','=',employee_id)]"/>
494 <separator colspan="4" string="Description"/>
495 <field name="note" colspan="4" nolabel="1"/>
498 <group col="10" colspan="4">
499 <field name="state"/>
500 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
501 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
502 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
503 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
504 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
505 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
506 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
511 <record id="view_hr_payslip_filter" model="ir.ui.view">
512 <field name="name">hr.payslip.select</field>
513 <field name="model">hr.payslip</field>
514 <field name="type">search</field>
515 <field name="arch" type="xml">
516 <search string="Search Payslips">
517 <group col="8" colspan="4">
518 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
519 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
520 <separator orientation="vertical"/>
521 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
522 <separator orientation="vertical"/>
524 <field name="employee_id"/>
525 <field name="number"/>
529 <group col="8" colspan="4" expand="0" string="Group By...">
530 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
531 <separator orientation="vertical"/>
532 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
533 <separator orientation="vertical"/>
534 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
535 <separator orientation="vertical"/>
536 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
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="Based on"/>
565 <field name="base" colspan="4" nolabel="1"/>
567 <group col="2" colspan="2">
568 <separator colspan="4" string="Dynamic Computation"/>
569 <field name="condition"/>
570 <field name="sequence"/>
573 <notebook colspan="4">
574 <page string="Description">
575 <field name="note" colspan="4" nolabel="1"/>
577 <page string="Contribution">
578 <field name="contribute_ids" colspan="4" nolabel="1" height="300"/>
584 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
585 <field name="name">hr.allounce.deduction.categoty.tree</field>
586 <field name="model">hr.allounce.deduction.categoty</field>
587 <field name="type">tree</field>
588 <field name="arch" type="xml">
589 <tree string="Salary Heads">
594 <field name="condition"/>
595 <field name="sequence"/>
600 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
601 <field name="name">hr.allounce.deduction.categoty.select</field>
602 <field name="model">hr.allounce.deduction.categoty</field>
603 <field name="type">search</field>
604 <field name="arch" type="xml">
605 <search string="Salary Heads">
606 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
607 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
608 <separator orientation="vertical"/>
609 <field name="name" select="1"/>
610 <field name="code" select="1"/>
613 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
614 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
615 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
621 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
622 <field name="name">Salary Heads</field>
623 <field name="res_model">hr.allounce.deduction.categoty</field>
624 <field name="view_type">form</field>
625 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
626 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
629 id="menu_hr_allounce_deduction_tree"
630 action="hr_allounce_deduction_tree"
631 parent="payroll_configure"
633 <!-- End Payment Heads -->
635 <!-- Company Contribution -->
636 <record id="hr_company_contribution_form" model="ir.ui.view">
637 <field name="name">company.contribution.form</field>
638 <field name="model">company.contribution</field>
639 <field name="type">form</field>
640 <field name="arch" type="xml">
641 <form string="Company Contribution">
642 <group col="6" colspan="6">
643 <field name="name" select="1"/>
644 <field name="code" select="1"/>
645 <field name="category_id"/>
647 <group col="2" colspan="2">
648 <separator colspan="2" string="Contributions"/>
649 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
650 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
651 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
653 <group col="2" colspan="2">
654 <separator colspan="2" string="Other Information"/>
655 <field name="company_id" select="1"/>
656 <field name="active" select="1"/>
658 <notebook colspan="4">
659 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
660 <field name="line_ids" colspan="4" nolabel="1">
661 <tree string="Function Arguments" editable="bottom">
663 <field name="sequence"/>
664 <field name="from_val"/>
665 <field name="to_val"/>
666 <field name="amount_type"/>
667 <field name="value"/>
671 <page string="Description">
672 <field name="note" colspan="4" nolabel="1"/>
678 <record id="hr_company_contribution_tree" model="ir.ui.view">
679 <field name="name">company.contribution.tree</field>
680 <field name="model">company.contribution</field>
681 <field name="type">tree</field>
682 <field name="arch" type="xml">
683 <tree string="Company Contribution">
686 <field name="contribute_per"/>
687 <field name="amount_type"/>
688 <field name="register_id"/>
689 <field name="category_id"/>
694 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
695 <field name="name">company.contribution.select</field>
696 <field name="model">company.contribution</field>
697 <field name="type">search</field>
698 <field name="arch" type="xml">
699 <search string="Search Company Contribution">
700 <group col="8" colspan="4">
701 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
702 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
703 <separator orientation="vertical"/>
706 <field name="contribute_per"/>
707 <field name="register_id"/>
710 <group col="8" colspan="4" expand="0" string="Group By...">
711 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
712 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
717 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
718 <field name="name">Company Contributions</field>
719 <field name="res_model">company.contribution</field>
720 <field name="view_type">form</field>
721 <field name="view_id" ref="hr_company_contribution_tree"/>
722 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
725 id="menu_hr_company_contribution_tree"
726 action="action_hr_company_contribution_tree"
727 parent="payroll_configure"
729 <!-- End Company Contribution -->
731 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
732 <field name="name">hr.payroll.advice.tree</field>
733 <field name="model">hr.payroll.advice</field>
734 <field name="type">tree</field>
735 <field name="arch" type="xml">
736 <tree string="Bank Advice">
737 <field name="name" select="1"/>
738 <field name="date" select="1"/>
739 <field name="number" select="1"/>
740 <field name="company_id"/>
745 <record id="view_hr_bank_advice_form" model="ir.ui.view">
746 <field name="name">hr.payroll.advice.form</field>
747 <field name="model">hr.payroll.advice</field>
748 <field name="type">form</field>
749 <field name="arch" type="xml">
750 <form string="Bank Advice">
751 <group col="6" colspan="4">
752 <field name="name" colspan="4" select="1"/>
753 <field name="account_id" select="1"/>
755 <field name="date" select="1"/>
756 <field name="number" select="1"/>
757 <field name="register_id"/>
759 <notebook colspan="4">
760 <page string="Paymeny Lines">
761 <field name="line_ids" colspan="4" nolabel="1">
762 <tree string="Payment Lines" editable="bottom">
763 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
765 <field name="amount"/>
766 <field name="bysal"/>
771 <page string="Letter Content">
772 <group colspan="4" col="6">
773 <field name="company_id" on_change="onchange_company_id(company_id)"/>
774 <field name="chaque_nos"/>
777 <separator colspan="4" string="Letter Details"/>
778 <field name="note" colspan="4" nolabel="1"/>
781 <group col="6" colspan="6">
782 <field name="state"/>
783 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
784 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
785 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
790 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
791 <field name="name">Payment Advice</field>
792 <field name="res_model">hr.payroll.advice</field>
793 <field name="view_type">form</field>
794 <field name="view_mode">tree,form</field>
795 <field name="view_id" ref="view_hr_bank_advice_tree"/>
798 action="action_view_hr_bank_advice_tree"
799 id="hr_menu_payment_advice"
800 parent="menu_hr_root_payroll"
803 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
804 <field name="name">hr.payroll.register.tree</field>
805 <field name="model">hr.payroll.register</field>
806 <field name="type">tree</field>
807 <field name="arch" type="xml">
808 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
809 <field name="number"/>
812 <field name="journal_id"/>
813 <field name="bank_journal_id"/>
814 <field name="state"/>
818 <record id="view_hr_payroll_register_form" model="ir.ui.view">
819 <field name="name">hr.payroll.register.form</field>
820 <field name="model">hr.payroll.register</field>
821 <field name="type">form</field>
822 <field name="arch" type="xml">
823 <form string="Payroll Register">
824 <group col="6" colspan="4">
825 <field name="name" select="1"/>
826 <field name="date" select="1"/>
827 <field name="number" select="1"/>
828 <field name="journal_id"/>
829 <field name="bank_journal_id"/>
830 <field name="active"/>
832 <notebook colspan="4">
833 <page string="Payslips">
834 <field name="line_ids" colspan="4" nolabel="1">
835 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
836 <field name="number"/>
837 <field name="employee_id"/>
840 <field name="basic"/>
841 <field name="allounce"/>
842 <field name="grows"/>
843 <field name="deduction"/>
845 <field name="state"/>
848 <group col="2" colspan="2">
849 <separator colspan="4" string="Allowance / Deduction"/>
850 <field name="allounce"/>
851 <field name="deduction"/>
853 <group col="2" colspan="2">
854 <separator colspan="4" string="Salary Information"/>
855 <field name="grows"/>
860 <group col="8" colspan="4">
861 <field name="state"/>
862 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
863 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
864 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
865 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
866 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
867 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
872 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
873 <field name="name">Payroll Register</field>
874 <field name="res_model">hr.payroll.register</field>
875 <field name="view_type">form</field>
876 <field name="view_mode">tree,form</field>
879 action="action_view_hr_payroll_register_form"
880 id="hr_menu_payroll_register"
881 parent="menu_hr_root_payroll"
885 Contribution Register
887 <record id="hr_contibution_register_tree" model="ir.ui.view">
888 <field name="name">hr.contibution.register.tree</field>
889 <field name="model">hr.contibution.register</field>
890 <field name="type">tree</field>
891 <field name="arch" type="xml">
892 <tree string="Contribution Registers">
893 <field name="name" select="1"/>
894 <field name="company_id" select="1"/>
895 <field name="monthly_total_by_emp"/>
896 <field name="monthly_total_by_comp"/>
897 <field name="yearly_total_by_emp"/>
898 <field name="yearly_total_by_comp"/>
902 <record id="hr_contibution_register_form" model="ir.ui.view">
903 <field name="name">hr.contibution.register.form</field>
904 <field name="model">hr.contibution.register</field>
905 <field name="type">form</field>
906 <field name="arch" type="xml">
907 <form string="Contribution">
908 <field name="name" select="1"/>
909 <field name="account_id"/>
910 <field name="analytic_account_id" groups="base.group_extended"/>
911 <field name="company_id" select="1"/>
912 <notebook colspan="4">
913 <page string="Contribution Lines">
914 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
915 <tree string="Register Lines" editable="top">
917 <field name="employee_id"/>
918 <field name="period_id"/>
919 <field name="emp_deduction"/>
920 <field name="comp_deduction"/>
921 <field name="total"/>
925 <page string="Description">
926 <separator colspan="4" string="Description"/>
927 <field name="note" colspan="4" nolabel="1"/>
930 <group col="2" colspan="2">
931 <separator colspan="4" string="Year"/>
932 <field name="yearly_total_by_emp"/>
933 <field name="yearly_total_by_comp"/>
935 <group col="2" colspan="2">
936 <separator colspan="2" string="Month"/>
937 <field name="monthly_total_by_emp"/>
938 <field name="monthly_total_by_comp"/>
943 <record id="action_contibution_register_form" model="ir.actions.act_window">
944 <field name="name">Contibution Register</field>
945 <field name="res_model">hr.contibution.register</field>
946 <field name="view_type">form</field>
947 <field name="view_id" ref="hr_contibution_register_tree"/>
950 id="menu_action_hr_contibution_register_form"
951 action="action_contibution_register_form"
952 parent="payroll_configure"
954 <record id="hr_contibution_register_line_form" model="ir.ui.view">
955 <field name="name">hr.contibution.register.line.form</field>
956 <field name="model">hr.contibution.register.line</field>
957 <field name="type">form</field>
958 <field name="arch" type="xml">
959 <form string="Contribution">
962 <field name="employee_id"/>
963 <field name="period_id"/>
964 <field name="emp_deduction"/>
965 <field name="comp_deduction"/>
966 <field name="total"/>
971 <record id="hr_payslip_line_condition_tree" model="ir.ui.view">
972 <field name="name">hr.payslip.line.condition.tree</field>
973 <field name="model">hr.payslip.line.condition</field>
974 <field name="type">tree</field>
975 <field name="arch" type="xml">
976 <form string="Condition">
978 <field name="date_start"/>
979 <field name="date_end"/>
980 <field name="state"/>