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"/>
8 <!-- Passport Views -->
9 <record id="hr_passport_form" model="ir.ui.view">
10 <field name="name">hr.passport.form</field>
11 <field name="model">hr.passport</field>
12 <field name="type">form</field>
13 <field name="arch" type="xml">
14 <form string="Passport">
15 <group col="6" colspan="4">
16 <field name="name" select="1" colspan="4"/>
17 <field name="employee_id" select="1"/>
19 <group col="2" colspan="2">
20 <separator string="Country & Address" colspan="4"/>
21 <field name="country_id" select="1"/>
22 <field name="address_id" select="1"/>
24 <group col="2" colspan="2">
25 <separator string="Valid From" colspan="2"/>
26 <field name="date_issue" select="1"/>
27 <field name="date_expire" select="1"/>
29 <notebook colspan="4">
30 <page string="Description">
31 <separator string="Description" colspan="2"/>
32 <field name="note" colspan="4" nolabel="1"/>
34 <page string="Contracts">
35 <field name="contracts_ids" colspan="4" nolabel="1"/>
41 <record id="hr_passport_tree" model="ir.ui.view">
42 <field name="name">hr.passport.tree</field>
43 <field name="model">hr.passport</field>
44 <field name="type">tree</field>
45 <field name="arch" type="xml">
46 <tree string="Passport">
47 <field name="name" select="1"/>
48 <field name="employee_id" select="1"/>
49 <field name="country_id" select="1"/>
50 <field name="date_expire" select="1"/>
51 <field name="date_expire" select="1"/>
55 <record id="action_hr_passport_tree" model="ir.actions.act_window">
56 <field name="name">All Passports</field>
57 <field name="res_model">hr.passport</field>
58 <field name="view_type">form</field>
59 <field name="view_id" ref="hr_passport_tree"/>
61 <menuitem id="passport_configure" parent="hr.menu_hr_configuration" name="Passport"/>
63 id="menu_action_hr_passport_tree"
64 action="action_hr_passport_tree"
65 parent="passport_configure"
67 <!-- End Passport Views -->
69 <!-- Employee View -->
70 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
71 <field name="name">hr.hr.employee.view.form2</field>
72 <field name="model">hr.employee</field>
73 <field name="inherit_id" ref="hr.view_employee_form"/>
74 <field name="arch" type="xml">
75 <notebook position="inside">
76 <page string="Contracts">
77 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
78 <tree string="Contracts">
80 <field name="job_id"/>
81 <field name="date_start"/>
82 <field name="date_end"/>
83 <field name="working_hours"/>
84 <field name="wage_type_id"/>
87 <form string="Contract">
88 <group colspan="4" col="6">
89 <field name="name" select="1"/>
90 <field name="job_id"/>
93 <field name="wage_type_id" widget="selection"/>
94 <field name="type_id" widget="selection"/>
96 <notebook colspan="4">
97 <page string="Main Data">
98 <group col="2" colspan="2">
99 <separator colspan="2" string="Duration"/>
100 <field name="date_start" select="1"/>
101 <field name="date_end" select="1"/>
102 <field name="working_hours"/>
104 <group col="2" colspan="2">
105 <separator colspan="2" string="Advantages"/>
106 <field name="struct_id" select="1"/>
107 <field name="advantages_net"/>
108 <field name="advantages_gross"/>
109 <field name="advantages" nolabel="1" colspan="2"/>
112 <page string="Work Permit">
113 <group col="2" colspan="2">
114 <separator colspan="2" string="Passport"/>
115 <field name="passport_id"/>
117 <group col="2" colspan="2">
118 <separator colspan="2" string="Valid for"/>
119 <field name="visa_no"/>
120 <field name="permit_no"/>
121 <field name="visa_expire"/>
125 <separator colspan="4" string="Notes"/>
126 <field colspan="4" name="notes" nolabel="1"/>
130 <page string="Miscelleanous">
131 <group colspan="2" col="2">
132 <separator string="Personal Info" colspan="2"/>
133 <field name="pan_no" select="1"/>
134 <field name="bank_account"/>
135 <field name="place_of_birth"/>
136 <field name="children"/>
138 <group colspan="2" col="2">
139 <separator string="Job Info" colspan="2"/>
140 <field name="manager" select="1"/>
141 <field name="vehicle" select="1"/>
142 <field name="vehicle_distance" select="1"/>
143 <field name="medic_exam" select="1"/>
145 <group col="2" colspan="2">
146 <separator colspan="2" string="ESI Information"/>
147 <field name="esi_account" string="Account"/>
148 <field name="hospital_id" string="Hospital"/>
149 <field name="medic_exam" select="1" string="Medical Examination"/>
150 <field name="esp_account" select="1"/>
152 <group col="2" colspan="2">
153 <separator colspan="2" string="Providend Fund"/>
154 <field name="pf_account" string="Account"/>
155 <field name="pg_joining" string="Join Date"/>
158 <page string="Salary Structure">
159 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
160 <tree string="Salary Structure" editable="bottom">
161 <field name="category_id" on_change="onchange_category(category_id)"/>
162 <field name="sequence"/>
166 <field name="amount_type"/>
167 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
168 <field name="account_id"/>
169 <field name="analytic_account_id"/>
173 <page string="Accounting">
174 <field name="property_bank_account"/>
175 <field name="salary_account"/>
176 <field name="employee_account"/>
177 <field name="analytic_account"/>
178 <field name="slip_ids" colspan="4" nolabel="1"/>
184 <record id="view_employee_passport_form" model="ir.ui.view">
185 <field name="name">hr.employee.passport.form</field>
186 <field name="model">hr.employee</field>
187 <field name="type">form</field>
188 <field name="inherit_id" ref="hr.view_employee_form"/>
189 <field name="arch" type="xml">
190 <field name="otherid" position="after">
191 <field name="passport_id"/>
195 <!-- End Employee View -->
197 <!-- Contract View -->
198 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
199 <field name="name">hr.contract.view.form</field>
200 <field name="model">hr.contract</field>
201 <field name="type">form</field>
202 <field name="arch" type="xml">
203 <form string="Contract">
204 <group colspan="4" col="6">
205 <field name="name" select="1"/>
206 <field name="employee_id" select="1"/>
207 <field name="job_id"/>
209 <field name="wage_type_id" widget="selection"/>
210 <field name="type_id" widget="selection"/>
212 <notebook colspan="4">
213 <page string="Main Data">
214 <group col="2" colspan="2">
215 <separator colspan="2" string="Duration"/>
216 <field name="date_start" select="1"/>
217 <field name="date_end" select="1"/>
218 <field name="working_hours"/>
219 <field name="working_days_per_week" select="1"/>
221 <group col="2" colspan="2">
222 <separator colspan="2" string="Advantages"/>
223 <field name="struct_id" select="1"/>
224 <field name="advantages_net"/>
225 <field name="advantages_gross"/>
226 <field name="advantages" nolabel="1" colspan="2"/>
229 <page string="Work Permit">
230 <group col="2" colspan="2">
231 <separator colspan="2" string="Passport"/>
232 <field name="passport_id"/>
234 <group col="2" colspan="2">
235 <separator colspan="2" string="Valid for"/>
236 <field name="visa_no"/>
237 <field name="permit_no"/>
238 <field name="visa_expire"/>
242 <separator colspan="4" string="Notes"/>
243 <field colspan="4" name="notes" nolabel="1"/>
247 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
248 <!-- End Contract View-->
250 <!-- Salary structure -->
251 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
252 <field name="name">hr.payroll.structure.tree</field>
253 <field name="model">hr.payroll.structure</field>
254 <field name="type">tree</field>
255 <field name="arch" type="xml">
256 <tree string="Employee Function">
259 <field name="line_ids"/>
260 <field name="company_id"/>
265 <record id="view_hr_employee_grade_form" model="ir.ui.view">
266 <field name="name">hr.payroll.structure.form</field>
267 <field name="model">hr.payroll.structure</field>
268 <field name="type">form</field>
269 <field name="arch" type="xml">
270 <form string="Employee Function">
271 <group col="6" colspan="4">
272 <field name="name" colspan="4" select="1"/>
273 <field name="code" select="1"/>
274 <field name="account_id" select="1"/>
275 <field name="company_id"/>
277 <notebook colspan="4">
278 <page string="Salary Structure">
279 <field name="line_ids" nolabel="1" colspan="4"/>
286 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
287 <field name="name">Salary Structure</field>
288 <field name="res_model">hr.payroll.structure</field>
289 <field name="view_type">form</field>
290 <field name="view_id" ref="view_hr_employee_grade_tree"/>
293 id="menu_hr_employee_function"
294 action="action_view_hr_employee_grade_form"
295 parent="payroll_configure"
297 <!-- End Salary structure -->
299 <!-- Holiday Status -->
300 <record model="ir.ui.view" id="view_holiday_status_form1">
301 <field name="name">hr.holidays.status.inherit</field>
302 <field name="model">hr.holidays.status</field>
303 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
304 <field name="type">form</field>
305 <field name="arch" type="xml">
306 <field name="color_name" position="after">
307 <group col="2" colspan="2">
308 <separator colspan="4" string="Payroll Accounting"/>
309 <field name="company_id" widget="selection" select="2"/>
311 <field name="analytic_account_id"/>
312 <field name="account_id"/>
314 <group col="2" colspan="2">
315 <separator colspan="4" string="Payroll Configurtion"/>
317 <field name="head_id"/>
322 <!-- End Holiday Status -->
324 <!-- Payslip Line -->
325 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
326 <field name="name">hr.payslip.line.tree</field>
327 <field name="model">hr.payslip.line</field>
328 <field name="type">tree</field>
329 <field name="arch" type="xml">
330 <tree string="Salary Structure" editable="bottom">
331 <field name="category_id" on_change="onchange_category(category_id)"/>
332 <field name="sequence"/>
336 <field name="amount_type"/>
337 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
338 <field name="account_id"/>
339 <field name="analytic_account_id"/>
343 <record id="view_hr_payslip_line_form" model="ir.ui.view">
344 <field name="name">hr.payslip.line.form</field>
345 <field name="model">hr.payslip.line</field>
346 <field name="type">form</field>
347 <field name="arch" type="xml">
348 <form string="Payslip Line">
349 <group col="6" colspan="4">
350 <field name="name" colspan="4" select="1"/>
351 <field name="code" select="1"/>
352 <field name="slip_id" select="1"/>
353 <field name="employee_id"/>
354 <field name="function_id"/>
356 <group col="2" colspan="2">
357 <separator colspan="4" string="Calculations"/>
358 <field name="category_id" on_change="onchange_category(category_id)"/>
360 <field name="amount_type"/>
361 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
362 <field name="sequence"/>
364 <group col="2" colspan="2">
365 <separator colspan="4" string="Accounting Informations"/>
366 <field name="account_id"/>
367 <field name="analytic_account_id"/>
368 <separator colspan="4" string="Company contribution"/>
369 <field name="company_contrib"/>
371 <notebook colspan="4">
372 <page string="Function">
373 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
374 <tree string="Function Arguments" editable="bottom">
376 <field name="sequence"/>
377 <field name="from_val"/>
378 <field name="to_val"/>
379 <field name="amount_type"/>
380 <field name="value"/>
384 <page string="Description">
385 <separator colspan="4" string="Description"/>
386 <field name="note" colspan="4" nolabel="1"/>
393 <record id="view_hr_payslip_tree" model="ir.ui.view">
394 <field name="name">hr.payslip.tree</field>
395 <field name="model">hr.payslip</field>
396 <field name="type">tree</field>
397 <field name="arch" type="xml">
398 <tree string="Payslip">
399 <field name="number"/>
400 <field name="employee_id"/>
403 <field name="grows"/>
405 <field name="state"/>
410 <record id="view_hr_payslip_form" model="ir.ui.view">
411 <field name="name">hr.payslip.form</field>
412 <field name="model">hr.payslip</field>
413 <field name="type">form</field>
414 <field name="arch" type="xml">
415 <form string="Payslip">
416 <group col="6" colspan="4">
417 <field name="employee_id"/>
419 <field name="number" select="1"/>
420 <field name="journal_id"/>
421 <field name="bank_journal_id" domain="[('type','=','cash')]"/>
424 <notebook colspan="4">
425 <page string="Salary Detail">
426 <field name="line_ids" colspan="4" nolabel="1">
427 <tree string="Salary Structure" editable="bottom">
428 <field name="category_id" on_change="onchange_category(category_id)"/>
429 <field name="sequence"/>
433 <field name="amount_type"/>
434 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
435 <field name="total"/>
436 <field name="account_id"/>
437 <field name="analytic_account_id"/>
441 <group col="6" colspan="4">
442 <separator string="Computation Overview" colspan="6"/>
443 <field name="working_days"/>
444 <field name="holiday_days"/>
445 <field name="worked_days"/>
447 <field name="basic_before_leaves"/>
448 <field name="leaves"/>
449 <field name="basic"/>
451 <field name="allounce"/>
452 <field name="deduction"/>
453 <field name="other_pay"/>
455 <field name="grows"/>
457 <field name="total_pay"/>
460 <page string="Accounting Details">
461 <group col="2" colspan="3">
462 <separator colspan="4" string="Accounting Informations"/>
463 <field name="move_ids" colspan="2" nolabel="1" readonly="1">
464 <tree string="Accounting Vouchers">
465 <field name="sequence"/>
467 <field name="move_id"/>
469 <form string="Accounting Vouchers">
470 <field name="sequence"/>
472 <field name="move_id"/>
476 <group col="2" colspan="1">
477 <separator colspan="4" string="Other Informations"/>
478 <field name="paid" readonly="1"/>
479 <field name="company_id"/>
480 <field name="register_id"/>
481 <field name="deg_id"/>
482 <field name="contract_id" domain="[('employee_id','=',employee_id)]"/>
484 <separator colspan="4" string="Description"/>
485 <field name="note" colspan="4" nolabel="1"/>
487 <page string="Account Lines">
488 <field name="move_line_ids" colspan="4" nolabel="1"/>
490 <page string="Payment Lines">
491 <field name="move_payment_ids" colspan="4" nolabel="1"/>
494 <group col="9" colspan="4">
495 <field name="state"/>
496 <button string="Compute Sheet" name="compute_sheet" states="new"/>
497 <button string="Recompute Sheet" name="compute_sheet" type="object" states="draft"/>
498 <button string="Verify Sheet" name="verify_sheet" states="draft"/>
499 <button string="Complete HR Checking" name="verify_twice_sheet" states="hr_check"/>
500 <button string="Complete Accountant Checking" name="final_verify_sheet" states="accont_check"/>
501 <button string="Pay Salary" name="process_sheet" states="confirm"/>
502 <button string="Cancel" name="cancel_sheet" states="draft,hr_check,accont_check,confirm"/>
503 <button string="Set to Draft" name="set_to_draft" states="cancel"/>
508 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
509 <field name="name">Employee Payslip</field>
510 <field name="res_model">hr.payslip</field>
511 <field name="view_type">form</field>
512 <field name="view_id" ref="view_hr_payslip_tree"/>
514 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
518 <!-- Payment Heads -->
519 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
520 <field name="name">hr.allounce.deduction.categoty.form</field>
521 <field name="model">hr.allounce.deduction.categoty</field>
522 <field name="type">form</field>
523 <field name="arch" type="xml">
524 <form string="Salary Heads">
525 <group col="6" colspan="6">
526 <field name="name" select="1"/>
527 <field name="code" select="1"/>
528 <field name="type" select="1"/>
529 <group col="2" colspan="4">
530 <separator colspan="4" string="Dynamic Computation"/>
532 <field name="condition"/>
533 <field name="sequence"/>
536 <notebook colspan="4">
537 <page string="Description">
538 <field name="note" colspan="4" nolabel="1"/>
544 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
545 <field name="name">hr.allounce.deduction.categoty.tree</field>
546 <field name="model">hr.allounce.deduction.categoty</field>
547 <field name="type">tree</field>
548 <field name="arch" type="xml">
549 <tree string="Salary Heads">
554 <field name="condition"/>
555 <field name="sequence"/>
559 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
560 <field name="name">Salary Heads</field>
561 <field name="res_model">hr.allounce.deduction.categoty</field>
562 <field name="view_type">form</field>
563 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
566 id="menu_hr_allounce_deduction_tree"
567 action="hr_allounce_deduction_tree"
568 parent="payroll_configure"
570 <!-- End Payment Heads -->
572 <!-- Company Contribution -->
573 <record id="hr_company_contribution_form" model="ir.ui.view">
574 <field name="name">company.contribution.form</field>
575 <field name="model">company.contribution</field>
576 <field name="type">form</field>
577 <field name="arch" type="xml">
578 <form string="Company Contribution">
579 <group col="6" colspan="6">
580 <field name="name" select="1"/>
581 <field name="code" select="1"/>
582 <field name="category_id"/>
583 <field name="company_id" select="1"/>
584 <field name="active" select="1"/>
586 <group col="2" colspan="2">
587 <separator colspan="2" string="Contributions"/>
588 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
589 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
590 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
592 <group col="2" colspan="2">
593 <separator colspan="2" string="Accounts"/>
594 <field name="include_in_salary" />
595 <field name="account_id" attrs="{'required': [('include_in_salary','=',True)]}"/>
597 <notebook colspan="4">
598 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
599 <field name="line_ids" colspan="4" nolabel="1">
600 <tree string="Function Arguments" editable="bottom">
602 <field name="sequence"/>
603 <field name="from_val"/>
604 <field name="to_val"/>
605 <field name="amount_type"/>
606 <field name="value"/>
610 <page string="Description">
611 <field name="note" colspan="4" nolabel="1"/>
617 <record id="hr_company_contribution_tree" model="ir.ui.view">
618 <field name="name">company.contribution.tree</field>
619 <field name="model">company.contribution</field>
620 <field name="type">tree</field>
621 <field name="arch" type="xml">
622 <tree string="Company Contribution">
625 <field name="contribute_per"/>
626 <field name="amount_type"/>
627 <field name="register_id"/>
631 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
632 <field name="name">Company Contributions</field>
633 <field name="res_model">company.contribution</field>
634 <field name="view_type">form</field>
635 <field name="view_id" ref="hr_company_contribution_tree"/>
638 id="menu_hr_company_contribution_tree"
639 action="action_hr_company_contribution_tree"
640 parent="payroll_configure"
642 <!-- End Company Contribution -->
644 <!-- Contract Form-->
645 <!-- <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">-->
646 <!-- <field name="name">hr.contract.view.form</field>-->
647 <!-- <field name="model">hr.contract</field>-->
648 <!-- <field name="type">form</field>-->
649 <!-- <field name="arch" type="xml">-->
650 <!-- <form string="Contract">-->
651 <!-- <field name="employee_id"/>-->
652 <!-- <separator colspan="4" string="General Information"/>-->
653 <!-- <field colspan="4" name="name" select="1"/>-->
655 <!-- <separator colspan="4" string="Contract Duration"/>-->
656 <!-- <field name="function"/>-->
657 <!-- <field name="working_hours_per_day"/>-->
658 <!-- <field name="working_days_per_week"/>-->
659 <!-- <field name="date_start" select="1"/>-->
660 <!-- <field name="date_end" select="1"/>-->
662 <!-- <separator colspan="4" string="Salary"/>-->
663 <!-- <field name="wage_type_id"/>-->
664 <!-- <field name="wage"/>-->
666 <!-- <separator colspan="4" string="Notes"/>-->
667 <!-- <field colspan="4" name="notes" nolabel="1"/>-->
669 <!-- <separator colspan="4" string="Passport and Visa"/>-->
670 <!-- <field name="permit_no"/>-->
671 <!-- <field name="passport_id"/>-->
672 <!-- <field name="visa_no"/>-->
673 <!-- <field name="visa_expire"/>-->
677 <!-- <record id="action_hr_contract" model="ir.actions.act_window">-->
678 <!-- <field name="name">Employee Contract</field>-->
679 <!-- <field name="res_model">hr.contract</field>-->
680 <!-- <field name="view_type">form</field>-->
681 <!-- <field name="view_mode">form,tree</field>-->
684 <!-- action="action_hr_contract" -->
685 <!-- name="Employee Contract" -->
686 <!-- id="hr_menu_contract" -->
687 <!-- parent="payroll_configure"-->
690 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
691 <field name="name">hr.payroll.advice.tree</field>
692 <field name="model">hr.payroll.advice</field>
693 <field name="type">tree</field>
694 <field name="arch" type="xml">
695 <tree string="Bank Advice">
696 <field name="name" select="1"/>
697 <field name="date" select="1"/>
698 <field name="number" select="1"/>
699 <field name="company_id"/>
704 <record id="view_hr_bank_advice_form" model="ir.ui.view">
705 <field name="name">hr.payroll.advice.form</field>
706 <field name="model">hr.payroll.advice</field>
707 <field name="type">form</field>
708 <field name="arch" type="xml">
709 <form string="Bank Advice">
710 <group col="6" colspan="4">
711 <field name="name" colspan="4" select="1"/>
712 <field name="account_id" select="1"/>
714 <field name="date" select="1"/>
715 <field name="number" select="1"/>
716 <field name="register_id"/>
718 <notebook colspan="4">
719 <page string="Paymeny Lines">
720 <field name="line_ids" colspan="4" nolabel="1">
721 <tree string="Payment Lines" editable="bottom">
722 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
724 <field name="amount"/>
725 <field name="bysal"/>
729 <field name="company_id"/>
730 <field name="chaque_nos"/>
732 <page string="Letter Content">
733 <separator colspan="4" string="Letter Details"/>
734 <field name="note" colspan="4" nolabel="1"/>
737 <group col="6" colspan="6">
738 <field name="state"/>
739 <button name="confirm_sheet" string="Confirm Sheet" states="draft" type="object"/>
740 <button name="set_to_draft" string="Set to Draft" states="cancel,confirm" type="object"/>
741 <button name="cancel_sheet" string="Cancel Sheet" states="draft" type="object"/>
746 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
747 <field name="name">Payment Advice</field>
748 <field name="res_model">hr.payroll.advice</field>
749 <field name="view_type">form</field>
750 <field name="view_mode">tree,form</field>
751 <field name="view_id" ref="view_hr_bank_advice_tree"/>
754 action="action_view_hr_bank_advice_tree"
755 id="hr_menu_payment_advice"
756 parent="menu_hr_root_payroll"
759 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
760 <field name="name">hr.payroll.register.tree</field>
761 <field name="model">hr.payroll.register</field>
762 <field name="type">tree</field>
763 <field name="arch" type="xml">
764 <tree string="Payroll Register">
765 <field name="number"/>
768 <field name="journal_id"/>
769 <field name="bank_journal_id"/>
770 <field name="state"/>
774 <record id="view_hr_payroll_register_form" model="ir.ui.view">
775 <field name="name">hr.payroll.register.form</field>
776 <field name="model">hr.payroll.register</field>
777 <field name="type">form</field>
778 <field name="arch" type="xml">
779 <form string="Payroll Register">
780 <group col="6" colspan="4">
781 <field name="name" select="1"/>
782 <field name="date" select="1"/>
783 <field name="number" select="1"/>
784 <field name="journal_id"/>
785 <field name="bank_journal_id"/>
786 <field name="active"/>
788 <notebook colspan="4">
789 <page string="Payslips">
790 <field name="line_ids" colspan="4" nolabel="1">
791 <tree string="Payslip">
792 <field name="number"/>
793 <field name="employee_id"/>
796 <field name="basic"/>
797 <field name="allounce"/>
798 <field name="grows"/>
799 <field name="deduction"/>
801 <field name="state"/>
804 <group col="2" colspan="2">
805 <separator colspan="4" string="Allowance / Deduction"/>
806 <field name="allounce"/>
807 <field name="deduction"/>
809 <group col="2" colspan="2">
810 <separator colspan="4" string="Salary Information"/>
811 <field name="grows"/>
816 <group col="8" colspan="4">
817 <field name="state"/>
818 <button string="Compute" name="compute_sheet" states="new" type="object"/>
819 <button string="Verify Sheet" name="verify_sheet" states="draft" type="object"/>
820 <button string="Complete HR Checking" name="verify_twice_sheet" type="object" states="hr_check"/>
821 <button string="Complete Accountant Checking" name="final_verify_sheet" states="accont_check" type="object"/>
822 <button string="Pay Salary" name="process_sheet" states="confirm" type="object"/>
823 <button string="Cancel" name="cancel_sheet" states="draft,hr_check,accont_check,confirm" type="object"/>
824 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object"/>
829 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
830 <field name="name">Payroll Register</field>
831 <field name="res_model">hr.payroll.register</field>
832 <field name="view_type">form</field>
833 <field name="view_mode">tree,form</field>
836 action="action_view_hr_payroll_register_form"
837 id="hr_menu_payroll_register"
838 parent="menu_hr_root_payroll"
842 Contribution Register
844 <record id="hr_contibution_register_tree" model="ir.ui.view">
845 <field name="name">hr.contibution.register.tree</field>
846 <field name="model">hr.contibution.register</field>
847 <field name="type">tree</field>
848 <field name="arch" type="xml">
849 <tree string="Contribution Registers">
850 <field name="name" select="1"/>
851 <field name="company_id" select="1"/>
852 <field name="monthly_total_by_emp"/>
853 <field name="monthly_total_by_comp"/>
854 <field name="yearly_total_by_emp"/>
855 <field name="yearly_total_by_comp"/>
859 <record id="hr_contibution_register_form" model="ir.ui.view">
860 <field name="name">hr.contibution.register.form</field>
861 <field name="model">hr.contibution.register</field>
862 <field name="type">form</field>
863 <field name="arch" type="xml">
864 <form string="Contribution">
865 <field name="name" select="1"/>
866 <field name="account_id"/>
867 <field name="analytic_account_id"/>
868 <field name="company_id" select="1"/>
869 <notebook colspan="4">
870 <page string="Contribution Lines">
871 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
872 <tree string="Register Lines" editable="top">
874 <field name="employee_id"/>
875 <field name="period_id"/>
876 <field name="emp_deduction"/>
877 <field name="comp_deduction"/>
878 <field name="total"/>
882 <page string="Description">
883 <separator colspan="4" string="Description"/>
884 <field name="note" colspan="4" nolabel="1"/>
887 <group col="2" colspan="2">
888 <separator colspan="4" string="Year"/>
889 <field name="yearly_total_by_emp"/>
890 <field name="yearly_total_by_comp"/>
892 <group col="2" colspan="2">
893 <separator colspan="2" string="Month"/>
894 <field name="monthly_total_by_emp"/>
895 <field name="monthly_total_by_comp"/>
900 <record id="action_contibution_register_form" model="ir.actions.act_window">
901 <field name="name">Contibution Register</field>
902 <field name="res_model">hr.contibution.register</field>
903 <field name="view_type">form</field>
904 <field name="view_id" ref="hr_contibution_register_tree"/>
907 id="menu_action_hr_contibution_register_form"
908 action="action_contibution_register_form"
909 parent="payroll_configure"
911 <record id="hr_contibution_register_line_form" model="ir.ui.view">
912 <field name="name">hr.contibution.register.line.form</field>
913 <field name="model">hr.contibution.register.line</field>
914 <field name="type">form</field>
915 <field name="arch" type="xml">
916 <form string="Contribution">
919 <field name="employee_id"/>
920 <field name="period_id"/>
921 <field name="emp_deduction"/>
922 <field name="comp_deduction"/>
923 <field name="total"/>
928 <record id="hr_payslip_line_condition_tree" model="ir.ui.view">
929 <field name="name">hr.payslip.line.condition.tree</field>
930 <field name="model">hr.payslip.line.condition</field>
931 <field name="type">tree</field>
932 <field name="arch" type="xml">
933 <form string="Condition">
935 <field name="date_start"/>
936 <field name="date_end"/>
937 <field name="state"/>