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"/>
6 <menuitem id="payroll_configure" parent="hr.menu_hr_configuration" name="Payroll" groups="base.group_system"/>
7 <menuitem id="menu_hr_payroll_reporting" parent="hr.menu_hr_reporting" name="Payroll" groups="base.group_hr_manager"/>
9 <!-- Passport Views -->
10 <record id="hr_passport_form" model="ir.ui.view">
11 <field name="name">hr.passport.form</field>
12 <field name="model">hr.passport</field>
13 <field name="type">form</field>
14 <field name="arch" type="xml">
15 <form string="Passport">
16 <group col="6" colspan="4">
17 <field name="name" select="1" colspan="4"/>
18 <field name="employee_id" />
20 <group col="2" colspan="2">
21 <separator string="Country & Address" colspan="4"/>
22 <field name="country_id" select="1"/>
23 <field name="address_id" select="1"/>
25 <group col="2" colspan="2">
26 <separator string="Valid From" colspan="2"/>
27 <field name="date_issue" select="1"/>
28 <field name="date_expire" select="1"/>
30 <notebook colspan="4">
31 <page string="Description">
32 <separator string="Description" colspan="2"/>
33 <field name="note" colspan="4" nolabel="1"/>
35 <page string="Contracts">
36 <field name="contracts_ids" colspan="4" nolabel="1"/>
42 <record id="hr_passport_tree" model="ir.ui.view">
43 <field name="name">hr.passport.tree</field>
44 <field name="model">hr.passport</field>
45 <field name="type">tree</field>
46 <field name="arch" type="xml">
47 <tree string="Passport">
49 <field name="employee_id" />
50 <field name="address_id"/>
51 <field name="country_id" />
52 <field name="date_expire"/>
53 <field name="date_issue" />
58 <record id="view_hr_passport_filter" model="ir.ui.view">
59 <field name="name">hr.passport.select</field>
60 <field name="model">hr.passport</field>
61 <field name="type">search</field>
62 <field name="arch" type="xml">
63 <search string="Search Passport">
64 <group col="8" colspan="4">
66 <field name="employee_id"/>
67 <field name="country_id"/>
68 <field name="address_id"/>
71 <group col="8" colspan="4" expand="0" string="Group By...">
72 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
73 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
74 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
75 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
80 <record id="action_hr_passport_tree" model="ir.actions.act_window">
81 <field name="name">All Passports</field>
82 <field name="res_model">hr.passport</field>
83 <field name="view_type">form</field>
84 <field name="view_id" ref="hr_passport_tree"/>
85 <field name="search_view_id" ref="view_hr_passport_filter"/>
87 <menuitem id="passport_configure" parent="hr.menu_hr_configuration" name="Passport"/>
89 id="menu_action_hr_passport_tree"
90 action="action_hr_passport_tree"
91 parent="passport_configure"
93 <!-- End Passport Views -->
95 <!-- Employee View -->
96 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
97 <field name="name">hr.hr.employee.view.form2</field>
98 <field name="model">hr.employee</field>
99 <field name="inherit_id" ref="hr.view_employee_form"/>
100 <field name="arch" type="xml">
101 <page string="Notes" position="before">
102 <page string="Contracts">
103 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
104 <tree string="Contracts">
106 <field name="job_id"/>
107 <field name="date_start"/>
108 <field name="date_end"/>
109 <field name="working_hours"/>
110 <field name="wage_type_id"/>
113 <form string="Contracts">
114 <group colspan="4" col="6">
115 <field name="name" select="1"/>
116 <field name="job_id"/>
119 <field name="wage_type_id" widget="selection"/>
120 <field name="type_id" widget="selection"/>
122 <notebook colspan="4">
123 <page string="Main Data">
124 <group col="2" colspan="2">
125 <separator colspan="2" string="Duration"/>
126 <field name="date_start" select="1"/>
127 <field name="date_end" select="1"/>
128 <field name="working_hours"/>
130 <group col="2" colspan="2">
131 <separator colspan="2" string="Advantages"/>
132 <field name="struct_id" select="1"/>
133 <field name="advantages_net"/>
134 <field name="advantages_gross"/>
135 <field name="advantages" nolabel="1" colspan="2"/>
138 <page string="Work Permit">
139 <group col="2" colspan="2">
140 <separator colspan="2" string="Passport"/>
141 <field name="passport_id"/>
143 <group col="2" colspan="2">
144 <separator colspan="2" string="Valid for"/>
145 <field name="visa_no"/>
146 <field name="permit_no"/>
147 <field name="visa_expire"/>
151 <separator colspan="4" string="Notes"/>
152 <field colspan="4" name="notes" nolabel="1"/>
156 <page string="Miscellaneous">
157 <group colspan="2" col="2">
158 <separator string="Personal Info" colspan="2"/>
159 <field name="pan_no" select="1"/>
160 <field name="bank_account_id"/>
161 <field name="place_of_birth"/>
162 <field name="children"/>
164 <group colspan="2" col="2">
165 <separator string="Job Info" colspan="2"/>
166 <field name="manager" select="1"/>
167 <field name="vehicle" select="1"/>
168 <field name="vehicle_distance" select="1"/>
170 <group col="2" colspan="2">
171 <separator colspan="2" string="ESI Information"/>
172 <field name="esi_account" string="Account"/>
173 <field name="hospital_id" string="Hospital"/>
174 <field name="medic_exam" select="1" string="Medical Examination"/>
175 <field name="esp_account" select="1"/>
177 <group col="2" colspan="2">
178 <separator colspan="2" string="Providend Fund"/>
179 <field name="pf_account" string="Account"/>
180 <field name="pg_joining" string="Join Date"/>
183 <page string="Salary Structure">
184 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
185 <tree string="Salary Structure" editable="bottom">
186 <field name="category_id" on_change="onchange_category(category_id)"/>
187 <field name="sequence"/>
191 <field name="amount_type"/>
192 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
193 <field name="account_id"/>
194 <field name="analytic_account_id" groups="base.group_extended"/>
198 <page string="Accounting">
199 <field name="property_bank_account"/>
200 <field name="salary_account"/>
201 <field name="employee_account"/>
202 <field name="analytic_account" groups="base.group_extended"/>
203 <field name="slip_ids" colspan="4" nolabel="1"/>
209 <record id="view_employee_passport_form" model="ir.ui.view">
210 <field name="name">hr.employee.passport.form</field>
211 <field name="model">hr.employee</field>
212 <field name="type">form</field>
213 <field name="inherit_id" ref="hr.view_employee_form"/>
214 <field name="arch" type="xml">
215 <field name="otherid" position="after">
216 <field name="passport_id"/>
220 <!-- End Employee View -->
222 <!-- Contract View -->
223 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
224 <field name="name">hr.contract.view.form</field>
225 <field name="model">hr.contract</field>
226 <field name="type">form</field>
227 <field name="arch" type="xml">
228 <form string="Contract">
229 <group colspan="4" col="6">
230 <field name="name" select="1"/>
231 <field name="employee_id" select="1"/>
232 <field name="job_id"/>
234 <field name="wage_type_id" widget="selection"/>
235 <field name="type_id" widget="selection"/>
237 <notebook colspan="4">
238 <page string="Main Data">
239 <group col="2" colspan="2">
240 <separator colspan="2" string="Duration"/>
241 <field name="date_start" select="1"/>
242 <field name="date_end" select="1"/>
243 <field name="working_hours"/>
244 <field name="working_days_per_week" select="1"/>
246 <group col="2" colspan="2">
247 <separator colspan="2" string="Advantages"/>
248 <field name="struct_id" select="1"/>
249 <field name="advantages_net"/>
250 <field name="advantages_gross"/>
251 <field name="advantages" nolabel="1" colspan="2"/>
254 <page string="Work Permit">
255 <group col="2" colspan="2">
256 <separator colspan="2" string="Passport"/>
257 <field name="passport_id"/>
259 <group col="2" colspan="2">
260 <separator colspan="2" string="Valid for"/>
261 <field name="visa_no"/>
262 <field name="permit_no"/>
263 <field name="visa_expire"/>
267 <separator colspan="4" string="Notes"/>
268 <field colspan="4" name="notes" nolabel="1"/>
272 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
273 <!-- End Contract View-->
275 <!-- Salary structure -->
276 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
277 <field name="name">hr.payroll.structure.tree</field>
278 <field name="model">hr.payroll.structure</field>
279 <field name="type">tree</field>
280 <field name="arch" type="xml">
281 <tree string="Employee Function">
284 <field name="line_ids"/>
285 <field name="company_id"/>
290 <record id="view_hr_employee_grade_form" model="ir.ui.view">
291 <field name="name">hr.payroll.structure.form</field>
292 <field name="model">hr.payroll.structure</field>
293 <field name="type">form</field>
294 <field name="arch" type="xml">
295 <form string="Employee Function">
296 <group col="6" colspan="4">
297 <field name="name" colspan="4" select="1"/>
298 <field name="code" select="1"/>
299 <field name="account_id" select="1" groups="base.group_extended"/>
300 <field name="company_id"/>
302 <notebook colspan="4">
303 <page string="Salary Structure">
304 <field name="line_ids" nolabel="1" colspan="4"/>
311 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
312 <field name="name">Salary Structure</field>
313 <field name="res_model">hr.payroll.structure</field>
314 <field name="view_type">form</field>
315 <field name="view_id" ref="view_hr_employee_grade_tree"/>
318 id="menu_hr_employee_function"
319 action="action_view_hr_employee_grade_form"
320 parent="payroll_configure"
322 <!-- End Salary structure -->
324 <!-- Holiday Status -->
325 <record model="ir.ui.view" id="view_holiday_status_form1">
326 <field name="name">hr.holidays.status.inherit</field>
327 <field name="model">hr.holidays.status</field>
328 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
329 <field name="type">form</field>
330 <field name="arch" type="xml">
331 <field name="color_name" position="after">
332 <group col="2" colspan="2">
333 <separator colspan="4" string="Payroll Accounting"/>
334 <field name="company_id" widget="selection" select="2"/>
336 <field name="analytic_account_id" groups="base.group_extended"/>
337 <field name="account_id"/>
339 <group col="2" colspan="2">
340 <separator colspan="4" string="Payroll Configurtion"/>
342 <field name="head_id"/>
347 <!-- End Holiday Status -->
349 <!-- Payslip Line -->
350 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
351 <field name="name">hr.payslip.line.tree</field>
352 <field name="model">hr.payslip.line</field>
353 <field name="type">tree</field>
354 <field name="arch" type="xml">
355 <tree string="Salary Structure" editable="bottom">
356 <field name="category_id" on_change="onchange_category(category_id)"/>
357 <field name="sequence"/>
361 <field name="amount_type"/>
362 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
363 <field name="account_id"/>
364 <field name="analytic_account_id" groups="base.group_extended"/>
368 <record id="view_hr_payslip_line_form" model="ir.ui.view">
369 <field name="name">hr.payslip.line.form</field>
370 <field name="model">hr.payslip.line</field>
371 <field name="type">form</field>
372 <field name="arch" type="xml">
373 <form string="Payslip Line">
374 <group col="6" colspan="4">
375 <field name="name" colspan="4" select="1"/>
376 <field name="code" select="1"/>
377 <field name="slip_id" select="1"/>
378 <field name="employee_id"/>
379 <field name="function_id"/>
381 <group col="2" colspan="2">
382 <separator colspan="4" string="Calculations"/>
383 <field name="category_id" on_change="onchange_category(category_id)"/>
385 <field name="amount_type"/>
386 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
387 <field name="sequence"/>
389 <group col="2" colspan="2">
390 <separator colspan="4" string="Accounting Informations"/>
391 <field name="account_id"/>
392 <field name="analytic_account_id" groups="base.group_extended"/>
393 <separator colspan="4" string="Company contribution"/>
394 <field name="company_contrib"/>
396 <notebook colspan="4">
397 <page string="Function">
398 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
399 <tree string="Function Arguments" editable="bottom">
401 <field name="sequence"/>
402 <field name="from_val"/>
403 <field name="to_val"/>
404 <field name="amount_type"/>
405 <field name="value"/>
409 <page string="Description">
410 <separator colspan="4" string="Description"/>
411 <field name="note" colspan="4" nolabel="1"/>
418 <record id="view_hr_payslip_tree" model="ir.ui.view">
419 <field name="name">hr.payslip.tree</field>
420 <field name="model">hr.payslip</field>
421 <field name="type">tree</field>
422 <field name="arch" type="xml">
423 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
424 <field name="number"/>
425 <field name="employee_id"/>
426 <field name="register_id" invisible="1"/>
429 <field name="grows"/>
431 <field name="state"/>
432 <field name="company_id"/>
437 <record id="view_hr_payslip_form" model="ir.ui.view">
438 <field name="name">hr.payslip.form</field>
439 <field name="model">hr.payslip</field>
440 <field name="type">form</field>
441 <field name="arch" type="xml">
442 <form string="Payslip">
443 <group col="6" colspan="4">
444 <field name="employee_id"/>
446 <field name="number" select="1"/>
447 <field name="journal_id"/>
448 <field name="bank_journal_id" domain="[('type','=','cash')]"/>
451 <notebook colspan="4">
452 <page string="Salary Detail">
453 <field name="line_ids" colspan="4" nolabel="1">
454 <tree string="Salary Structure" editable="bottom">
455 <field name="category_id" on_change="onchange_category(category_id)"/>
456 <field name="sequence"/>
460 <field name="amount_type"/>
461 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
462 <field name="total"/>
463 <field name="account_id"/>
464 <field name="analytic_account_id" groups="base.group_extended"/>
468 <group col="6" colspan="4">
469 <separator string="Computation Overview" colspan="6"/>
470 <field name="working_days"/>
471 <field name="holiday_days"/>
472 <field name="worked_days"/>
474 <field name="basic_before_leaves"/>
475 <field name="leaves"/>
476 <field name="basic"/>
478 <field name="allounce"/>
479 <field name="deduction"/>
480 <field name="other_pay"/>
482 <field name="grows"/>
484 <field name="total_pay"/>
487 <page string="Accounting Details">
488 <group col="2" colspan="1">
489 <separator colspan="2" string="Other Informations"/>
490 <field name="paid" readonly="1"/>
491 <field name="company_id"/>
492 <field name="register_id"/>
493 <field name="deg_id"/>
494 <field name="contract_id" domain="[('employee_id','=',employee_id)]"/>
497 <separator colspan="4" string="Description"/>
498 <field name="note" colspan="4" nolabel="1"/>
501 <group col="10" colspan="4">
502 <field name="state"/>
503 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
504 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
505 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
506 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
507 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
508 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
509 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
514 <record id="view_hr_payslip_filter" model="ir.ui.view">
515 <field name="name">hr.payslip.select</field>
516 <field name="model">hr.payslip</field>
517 <field name="type">search</field>
518 <field name="arch" type="xml">
519 <search string="Search Payslips">
520 <group col="8" colspan="4">
521 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
522 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
523 <separator orientation="vertical"/>
524 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
525 <separator orientation="vertical"/>
527 <field name="employee_id"/>
528 <field name="number"/>
532 <group col="8" colspan="4" expand="0" string="Group By...">
533 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
534 <separator orientation="vertical"/>
535 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
536 <separator orientation="vertical"/>
537 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
538 <separator orientation="vertical"/>
539 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
544 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
545 <field name="name">Employee Payslip</field>
546 <field name="res_model">hr.payslip</field>
547 <field name="view_type">form</field>
548 <field name="view_id" ref="view_hr_payslip_tree"/>
549 <field name="search_view_id" ref="view_hr_payslip_filter"/>
551 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
555 <!-- Payment Heads -->
556 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
557 <field name="name">hr.allounce.deduction.categoty.form</field>
558 <field name="model">hr.allounce.deduction.categoty</field>
559 <field name="type">form</field>
560 <field name="arch" type="xml">
561 <form string="Salary Heads">
562 <group col="6" colspan="6">
563 <field name="name" select="1"/>
564 <field name="code" select="1"/>
565 <field name="type" select="1"/>
566 <group col="2" colspan="4">
567 <separator colspan="4" string="Based on"/>
568 <field name="base" colspan="4" nolabel="1"/>
570 <group col="2" colspan="2">
571 <separator colspan="4" string="Dynamic Computation"/>
572 <field name="condition"/>
573 <field name="sequence"/>
576 <notebook colspan="4">
577 <page string="Description">
578 <field name="note" colspan="4" nolabel="1"/>
580 <page string="Contribution">
581 <field name="contribute_ids" colspan="4" nolabel="1" height="300"/>
587 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
588 <field name="name">hr.allounce.deduction.categoty.tree</field>
589 <field name="model">hr.allounce.deduction.categoty</field>
590 <field name="type">tree</field>
591 <field name="arch" type="xml">
592 <tree string="Salary Heads">
597 <field name="condition"/>
598 <field name="sequence"/>
603 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
604 <field name="name">hr.allounce.deduction.categoty.select</field>
605 <field name="model">hr.allounce.deduction.categoty</field>
606 <field name="type">search</field>
607 <field name="arch" type="xml">
608 <search string="Salary Heads">
609 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
610 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
611 <separator orientation="vertical"/>
612 <field name="name" select="1"/>
613 <field name="code" select="1"/>
616 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
617 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
618 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
624 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
625 <field name="name">Salary Heads</field>
626 <field name="res_model">hr.allounce.deduction.categoty</field>
627 <field name="view_type">form</field>
628 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
629 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
632 id="menu_hr_allounce_deduction_tree"
633 action="hr_allounce_deduction_tree"
634 parent="payroll_configure"
636 <!-- End Payment Heads -->
638 <!-- Company Contribution -->
639 <record id="hr_company_contribution_form" model="ir.ui.view">
640 <field name="name">company.contribution.form</field>
641 <field name="model">company.contribution</field>
642 <field name="type">form</field>
643 <field name="arch" type="xml">
644 <form string="Company Contribution">
645 <group col="6" colspan="6">
646 <field name="name" select="1"/>
647 <field name="code" select="1"/>
648 <field name="category_id"/>
650 <group col="2" colspan="2">
651 <separator colspan="2" string="Contributions"/>
652 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
653 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
654 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
656 <group col="2" colspan="2">
657 <separator colspan="2" string="Other Information"/>
658 <field name="company_id" select="1"/>
659 <field name="active" select="1"/>
661 <notebook colspan="4">
662 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
663 <field name="line_ids" colspan="4" nolabel="1">
664 <tree string="Function Arguments" editable="bottom">
666 <field name="sequence"/>
667 <field name="from_val"/>
668 <field name="to_val"/>
669 <field name="amount_type"/>
670 <field name="value"/>
674 <page string="Description">
675 <field name="note" colspan="4" nolabel="1"/>
681 <record id="hr_company_contribution_tree" model="ir.ui.view">
682 <field name="name">company.contribution.tree</field>
683 <field name="model">company.contribution</field>
684 <field name="type">tree</field>
685 <field name="arch" type="xml">
686 <tree string="Company Contribution">
689 <field name="contribute_per"/>
690 <field name="amount_type"/>
691 <field name="register_id"/>
692 <field name="category_id"/>
697 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
698 <field name="name">company.contribution.select</field>
699 <field name="model">company.contribution</field>
700 <field name="type">search</field>
701 <field name="arch" type="xml">
702 <search string="Search Company Contribution">
703 <group col="8" colspan="4">
704 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
705 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
706 <separator orientation="vertical"/>
709 <field name="contribute_per"/>
710 <field name="register_id"/>
713 <group col="8" colspan="4" expand="0" string="Group By...">
714 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
715 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
720 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
721 <field name="name">Company Contributions</field>
722 <field name="res_model">company.contribution</field>
723 <field name="view_type">form</field>
724 <field name="view_id" ref="hr_company_contribution_tree"/>
725 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
728 id="menu_hr_company_contribution_tree"
729 action="action_hr_company_contribution_tree"
730 parent="payroll_configure"
732 <!-- End Company Contribution -->
734 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
735 <field name="name">hr.payroll.advice.tree</field>
736 <field name="model">hr.payroll.advice</field>
737 <field name="type">tree</field>
738 <field name="arch" type="xml">
739 <tree string="Bank Advice">
740 <field name="name" select="1"/>
741 <field name="date" select="1"/>
742 <field name="number" select="1"/>
743 <field name="company_id"/>
748 <record id="view_hr_bank_advice_form" model="ir.ui.view">
749 <field name="name">hr.payroll.advice.form</field>
750 <field name="model">hr.payroll.advice</field>
751 <field name="type">form</field>
752 <field name="arch" type="xml">
753 <form string="Bank Advice">
754 <group col="6" colspan="4">
755 <field name="name" colspan="4" select="1"/>
756 <field name="account_id" select="1"/>
758 <field name="date" select="1"/>
759 <field name="number" select="1"/>
760 <field name="register_id"/>
762 <notebook colspan="4">
763 <page string="Paymeny Lines">
764 <field name="line_ids" colspan="4" nolabel="1">
765 <tree string="Payment Lines" editable="bottom">
766 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
768 <field name="amount"/>
769 <field name="bysal"/>
774 <page string="Letter Content">
775 <group colspan="4" col="6">
776 <field name="company_id" on_change="onchange_company_id(company_id)"/>
777 <field name="chaque_nos"/>
780 <separator colspan="4" string="Letter Details"/>
781 <field name="note" colspan="4" nolabel="1"/>
784 <group col="6" colspan="6">
785 <field name="state"/>
786 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
787 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
788 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
793 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
794 <field name="name">Payment Advice</field>
795 <field name="res_model">hr.payroll.advice</field>
796 <field name="view_type">form</field>
797 <field name="view_mode">tree,form</field>
798 <field name="view_id" ref="view_hr_bank_advice_tree"/>
801 action="action_view_hr_bank_advice_tree"
802 id="hr_menu_payment_advice"
803 parent="menu_hr_root_payroll"
806 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
807 <field name="name">hr.payroll.register.tree</field>
808 <field name="model">hr.payroll.register</field>
809 <field name="type">tree</field>
810 <field name="arch" type="xml">
811 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
812 <field name="number"/>
815 <field name="journal_id"/>
816 <field name="bank_journal_id"/>
817 <field name="state"/>
821 <record id="view_hr_payroll_register_form" model="ir.ui.view">
822 <field name="name">hr.payroll.register.form</field>
823 <field name="model">hr.payroll.register</field>
824 <field name="type">form</field>
825 <field name="arch" type="xml">
826 <form string="Payroll Register">
827 <group col="6" colspan="4">
828 <field name="name" select="1"/>
829 <field name="date" select="1"/>
830 <field name="number" select="1"/>
831 <field name="journal_id"/>
832 <field name="bank_journal_id"/>
833 <field name="active"/>
835 <notebook colspan="4">
836 <page string="Payslips">
837 <field name="line_ids" colspan="4" nolabel="1">
838 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
839 <field name="number"/>
840 <field name="employee_id"/>
843 <field name="basic"/>
844 <field name="allounce"/>
845 <field name="grows"/>
846 <field name="deduction"/>
848 <field name="state"/>
851 <group col="2" colspan="2">
852 <separator colspan="4" string="Allowance / Deduction"/>
853 <field name="allounce"/>
854 <field name="deduction"/>
856 <group col="2" colspan="2">
857 <separator colspan="4" string="Salary Information"/>
858 <field name="grows"/>
863 <group col="8" colspan="4">
864 <field name="state"/>
865 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
866 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
867 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
868 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
869 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
870 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
875 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
876 <field name="name">Payroll Register</field>
877 <field name="res_model">hr.payroll.register</field>
878 <field name="view_type">form</field>
879 <field name="view_mode">tree,form</field>
882 action="action_view_hr_payroll_register_form"
883 id="hr_menu_payroll_register"
884 parent="menu_hr_root_payroll"
888 Contribution Register
890 <record id="hr_contibution_register_tree" model="ir.ui.view">
891 <field name="name">hr.contibution.register.tree</field>
892 <field name="model">hr.contibution.register</field>
893 <field name="type">tree</field>
894 <field name="arch" type="xml">
895 <tree string="Contribution Registers">
896 <field name="name" select="1"/>
897 <field name="company_id" select="1"/>
898 <field name="monthly_total_by_emp"/>
899 <field name="monthly_total_by_comp"/>
900 <field name="yearly_total_by_emp"/>
901 <field name="yearly_total_by_comp"/>
905 <record id="hr_contibution_register_form" model="ir.ui.view">
906 <field name="name">hr.contibution.register.form</field>
907 <field name="model">hr.contibution.register</field>
908 <field name="type">form</field>
909 <field name="arch" type="xml">
910 <form string="Contribution">
911 <field name="name" select="1"/>
912 <field name="account_id"/>
913 <field name="analytic_account_id" groups="base.group_extended"/>
914 <field name="company_id" select="1"/>
915 <notebook colspan="4">
916 <page string="Contribution Lines">
917 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
918 <tree string="Register Lines" editable="top">
920 <field name="employee_id"/>
921 <field name="period_id"/>
922 <field name="emp_deduction"/>
923 <field name="comp_deduction"/>
924 <field name="total"/>
928 <page string="Description">
929 <separator colspan="4" string="Description"/>
930 <field name="note" colspan="4" nolabel="1"/>
933 <group col="2" colspan="2">
934 <separator colspan="4" string="Year"/>
935 <field name="yearly_total_by_emp"/>
936 <field name="yearly_total_by_comp"/>
938 <group col="2" colspan="2">
939 <separator colspan="2" string="Month"/>
940 <field name="monthly_total_by_emp"/>
941 <field name="monthly_total_by_comp"/>
946 <record id="action_contibution_register_form" model="ir.actions.act_window">
947 <field name="name">Contibution Register</field>
948 <field name="res_model">hr.contibution.register</field>
949 <field name="view_type">form</field>
950 <field name="view_id" ref="hr_contibution_register_tree"/>
953 id="menu_action_hr_contibution_register_form"
954 action="action_contibution_register_form"
955 parent="payroll_configure"
957 <record id="hr_contibution_register_line_form" model="ir.ui.view">
958 <field name="name">hr.contibution.register.line.form</field>
959 <field name="model">hr.contibution.register.line</field>
960 <field name="type">form</field>
961 <field name="arch" type="xml">
962 <form string="Contribution">
965 <field name="employee_id"/>
966 <field name="period_id"/>
967 <field name="emp_deduction"/>
968 <field name="comp_deduction"/>
969 <field name="total"/>
974 <record id="hr_payslip_line_condition_tree" model="ir.ui.view">
975 <field name="name">hr.payslip.line.condition.tree</field>
976 <field name="model">hr.payslip.line.condition</field>
977 <field name="type">tree</field>
978 <field name="arch" type="xml">
979 <form string="Condition">
981 <field name="date_start"/>
982 <field name="date_end"/>
983 <field name="state"/>