1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll"/>
6 <menuitem id="payroll_configure" parent="hr.menu_hr_configuration" name="Payroll" groups="base.group_system"/>
7 <menuitem id="menu_hr_payroll_reporting" parent="hr.menu_hr_reporting" name="Payroll" groups="base.group_hr_manager"/>
9 <!-- Passport Views -->
10 <record id="hr_passport_form" model="ir.ui.view">
11 <field name="name">hr.passport.form</field>
12 <field name="model">hr.passport</field>
13 <field name="type">form</field>
14 <field name="arch" type="xml">
15 <form string="Passport">
16 <group col="6" colspan="4">
17 <field name="name" select="1" colspan="4"/>
18 <field name="employee_id" />
20 <group col="2" colspan="2">
21 <separator string="Country & Address" colspan="4"/>
22 <field name="country_id" select="1"/>
23 <field name="address_id" select="1"/>
25 <group col="2" colspan="2">
26 <separator string="Valid From" colspan="2"/>
27 <field name="date_issue" select="1"/>
28 <field name="date_expire" select="1"/>
30 <notebook colspan="4">
31 <page string="Description">
32 <separator string="Description" colspan="2"/>
33 <field name="note" colspan="4" nolabel="1"/>
35 <page string="Contracts">
36 <field name="contracts_ids" colspan="4" nolabel="1"/>
42 <record id="hr_passport_tree" model="ir.ui.view">
43 <field name="name">hr.passport.tree</field>
44 <field name="model">hr.passport</field>
45 <field name="type">tree</field>
46 <field name="arch" type="xml">
47 <tree string="Passport">
49 <field name="employee_id" />
50 <field name="address_id"/>
51 <field name="country_id" />
52 <field name="date_expire"/>
53 <field name="date_issue" />
58 <record id="view_hr_passport_filter" model="ir.ui.view">
59 <field name="name">hr.passport.select</field>
60 <field name="model">hr.passport</field>
61 <field name="type">search</field>
62 <field name="arch" type="xml">
63 <search string="Search Passport">
64 <group col="8" colspan="4">
66 <field name="employee_id"/>
67 <field name="country_id"/>
68 <field name="address_id"/>
71 <group col="8" colspan="4" expand="0" string="Group By...">
72 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
73 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
74 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
75 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
80 <record id="action_hr_passport_tree" model="ir.actions.act_window">
81 <field name="name">All Passports</field>
82 <field name="res_model">hr.passport</field>
83 <field name="view_type">form</field>
84 <field name="view_id" ref="hr_passport_tree"/>
85 <field name="search_view_id" ref="view_hr_passport_filter"/>
87 <menuitem id="passport_configure" parent="hr.menu_hr_configuration" name="Passport"/>
89 id="menu_action_hr_passport_tree"
90 action="action_hr_passport_tree"
91 parent="passport_configure"
93 <!-- End Passport Views -->
95 <!-- Employee View -->
96 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
97 <field name="name">hr.hr.employee.view.form2</field>
98 <field name="model">hr.employee</field>
99 <field name="inherit_id" ref="hr.view_employee_form"/>
100 <field name="arch" type="xml">
101 <notebook position="inside">
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="Contract">
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="Miscelleanous">
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"/>
169 <field name="medic_exam" select="1"/>
171 <group col="2" colspan="2">
172 <separator colspan="2" string="ESI Information"/>
173 <field name="esi_account" string="Account"/>
174 <field name="hospital_id" string="Hospital"/>
175 <field name="medic_exam" select="1" string="Medical Examination"/>
176 <field name="esp_account" select="1"/>
178 <group col="2" colspan="2">
179 <separator colspan="2" string="Providend Fund"/>
180 <field name="pf_account" string="Account"/>
181 <field name="pg_joining" string="Join Date"/>
184 <page string="Salary Structure">
185 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
186 <tree string="Salary Structure" editable="bottom">
187 <field name="category_id" on_change="onchange_category(category_id)"/>
188 <field name="sequence"/>
192 <field name="amount_type"/>
193 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
194 <field name="account_id"/>
195 <field name="analytic_account_id" groups="base.group_extended"/>
199 <page string="Accounting">
200 <field name="property_bank_account"/>
201 <field name="salary_account"/>
202 <field name="employee_account"/>
203 <field name="analytic_account"/>
204 <field name="slip_ids" colspan="4" nolabel="1"/>
210 <record id="view_employee_passport_form" model="ir.ui.view">
211 <field name="name">hr.employee.passport.form</field>
212 <field name="model">hr.employee</field>
213 <field name="type">form</field>
214 <field name="inherit_id" ref="hr.view_employee_form"/>
215 <field name="arch" type="xml">
216 <field name="otherid" position="after">
217 <field name="passport_id"/>
221 <!-- End Employee View -->
223 <!-- Contract View -->
224 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
225 <field name="name">hr.contract.view.form</field>
226 <field name="model">hr.contract</field>
227 <field name="type">form</field>
228 <field name="arch" type="xml">
229 <form string="Contract">
230 <group colspan="4" col="6">
231 <field name="name" select="1"/>
232 <field name="employee_id" select="1"/>
233 <field name="job_id"/>
235 <field name="wage_type_id" widget="selection"/>
236 <field name="type_id" widget="selection"/>
238 <notebook colspan="4">
239 <page string="Main Data">
240 <group col="2" colspan="2">
241 <separator colspan="2" string="Duration"/>
242 <field name="date_start" select="1"/>
243 <field name="date_end" select="1"/>
244 <field name="working_hours"/>
245 <field name="working_days_per_week" select="1"/>
247 <group col="2" colspan="2">
248 <separator colspan="2" string="Advantages"/>
249 <field name="struct_id" select="1"/>
250 <field name="advantages_net"/>
251 <field name="advantages_gross"/>
252 <field name="advantages" nolabel="1" colspan="2"/>
255 <page string="Work Permit">
256 <group col="2" colspan="2">
257 <separator colspan="2" string="Passport"/>
258 <field name="passport_id"/>
260 <group col="2" colspan="2">
261 <separator colspan="2" string="Valid for"/>
262 <field name="visa_no"/>
263 <field name="permit_no"/>
264 <field name="visa_expire"/>
268 <separator colspan="4" string="Notes"/>
269 <field colspan="4" name="notes" nolabel="1"/>
273 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
274 <!-- End Contract View-->
276 <!-- Salary structure -->
277 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
278 <field name="name">hr.payroll.structure.tree</field>
279 <field name="model">hr.payroll.structure</field>
280 <field name="type">tree</field>
281 <field name="arch" type="xml">
282 <tree string="Employee Function">
285 <field name="line_ids"/>
286 <field name="company_id"/>
291 <record id="view_hr_employee_grade_form" model="ir.ui.view">
292 <field name="name">hr.payroll.structure.form</field>
293 <field name="model">hr.payroll.structure</field>
294 <field name="type">form</field>
295 <field name="arch" type="xml">
296 <form string="Employee Function">
297 <group col="6" colspan="4">
298 <field name="name" colspan="4" select="1"/>
299 <field name="code" select="1"/>
300 <field name="account_id" select="1" groups="base.group_extended"/>
301 <field name="company_id"/>
303 <notebook colspan="4">
304 <page string="Salary Structure">
305 <field name="line_ids" nolabel="1" colspan="4"/>
312 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
313 <field name="name">Salary Structure</field>
314 <field name="res_model">hr.payroll.structure</field>
315 <field name="view_type">form</field>
316 <field name="view_id" ref="view_hr_employee_grade_tree"/>
319 id="menu_hr_employee_function"
320 action="action_view_hr_employee_grade_form"
321 parent="payroll_configure"
323 <!-- End Salary structure -->
325 <!-- Holiday Status -->
326 <record model="ir.ui.view" id="view_holiday_status_form1">
327 <field name="name">hr.holidays.status.inherit</field>
328 <field name="model">hr.holidays.status</field>
329 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
330 <field name="type">form</field>
331 <field name="arch" type="xml">
332 <field name="color_name" position="after">
333 <group col="2" colspan="2">
334 <separator colspan="4" string="Payroll Accounting"/>
335 <field name="company_id" widget="selection" select="2"/>
337 <field name="analytic_account_id" groups="base.group_extended"/>
338 <field name="account_id"/>
340 <group col="2" colspan="2">
341 <separator colspan="4" string="Payroll Configurtion"/>
343 <field name="head_id"/>
348 <!-- End Holiday Status -->
350 <!-- Payslip Line -->
351 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
352 <field name="name">hr.payslip.line.tree</field>
353 <field name="model">hr.payslip.line</field>
354 <field name="type">tree</field>
355 <field name="arch" type="xml">
356 <tree string="Salary Structure" editable="bottom">
357 <field name="category_id" on_change="onchange_category(category_id)"/>
358 <field name="sequence"/>
362 <field name="amount_type"/>
363 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
364 <field name="account_id"/>
365 <field name="analytic_account_id" groups="base.group_extended"/>
369 <record id="view_hr_payslip_line_form" model="ir.ui.view">
370 <field name="name">hr.payslip.line.form</field>
371 <field name="model">hr.payslip.line</field>
372 <field name="type">form</field>
373 <field name="arch" type="xml">
374 <form string="Payslip Line">
375 <group col="6" colspan="4">
376 <field name="name" colspan="4" select="1"/>
377 <field name="code" select="1"/>
378 <field name="slip_id" select="1"/>
379 <field name="employee_id"/>
380 <field name="function_id"/>
382 <group col="2" colspan="2">
383 <separator colspan="4" string="Calculations"/>
384 <field name="category_id" on_change="onchange_category(category_id)"/>
386 <field name="amount_type"/>
387 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
388 <field name="sequence"/>
390 <group col="2" colspan="2">
391 <separator colspan="4" string="Accounting Informations"/>
392 <field name="account_id"/>
393 <field name="analytic_account_id" groups="base.group_extended"/>
394 <separator colspan="4" string="Company contribution"/>
395 <field name="company_contrib"/>
397 <notebook colspan="4">
398 <page string="Function">
399 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
400 <tree string="Function Arguments" editable="bottom">
402 <field name="sequence"/>
403 <field name="from_val"/>
404 <field name="to_val"/>
405 <field name="amount_type"/>
406 <field name="value"/>
410 <page string="Description">
411 <separator colspan="4" string="Description"/>
412 <field name="note" colspan="4" nolabel="1"/>
419 <record id="view_hr_payslip_tree" model="ir.ui.view">
420 <field name="name">hr.payslip.tree</field>
421 <field name="model">hr.payslip</field>
422 <field name="type">tree</field>
423 <field name="arch" type="xml">
424 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
425 <field name="number"/>
426 <field name="employee_id"/>
427 <field name="register_id" invisible="1"/>
430 <field name="grows"/>
432 <field name="state"/>
433 <field name="company_id"/>
438 <record id="view_hr_payslip_form" model="ir.ui.view">
439 <field name="name">hr.payslip.form</field>
440 <field name="model">hr.payslip</field>
441 <field name="type">form</field>
442 <field name="arch" type="xml">
443 <form string="Payslip">
444 <group col="6" colspan="4">
445 <field name="employee_id"/>
447 <field name="number" select="1"/>
448 <field name="journal_id"/>
449 <field name="bank_journal_id" domain="[('type','=','cash')]"/>
452 <notebook colspan="4">
453 <page string="Salary Detail">
454 <field name="line_ids" colspan="4" nolabel="1">
455 <tree string="Salary Structure" editable="bottom">
456 <field name="category_id" on_change="onchange_category(category_id)"/>
457 <field name="sequence"/>
461 <field name="amount_type"/>
462 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
463 <field name="total"/>
464 <field name="account_id"/>
465 <field name="analytic_account_id" groups="base.group_extended"/>
469 <group col="6" colspan="4">
470 <separator string="Computation Overview" colspan="6"/>
471 <field name="working_days"/>
472 <field name="holiday_days"/>
473 <field name="worked_days"/>
475 <field name="basic_before_leaves"/>
476 <field name="leaves"/>
477 <field name="basic"/>
479 <field name="allounce"/>
480 <field name="deduction"/>
481 <field name="other_pay"/>
483 <field name="grows"/>
485 <field name="total_pay"/>
488 <page string="Accounting Details">
489 <group col="2" colspan="1">
490 <separator colspan="2" string="Other Informations"/>
491 <field name="paid" readonly="1"/>
492 <field name="company_id"/>
493 <field name="register_id"/>
494 <field name="deg_id"/>
495 <field name="contract_id" domain="[('employee_id','=',employee_id)]"/>
498 <separator colspan="4" string="Description"/>
499 <field name="note" colspan="4" nolabel="1"/>
502 <group col="10" colspan="4">
503 <field name="state"/>
504 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
505 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
506 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
507 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
508 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
509 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
510 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
515 <record id="view_hr_payslip_filter" model="ir.ui.view">
516 <field name="name">hr.payslip.select</field>
517 <field name="model">hr.payslip</field>
518 <field name="type">search</field>
519 <field name="arch" type="xml">
520 <search string="Search Payslips">
521 <group col="8" colspan="4">
522 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
523 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
524 <separator orientation="vertical"/>
525 <filter icon="terp-account" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
527 <field name="employee_id"/>
528 <field name="number"/>
532 <group col="8" colspan="4" expand="0" string="Group By...">
533 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
534 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
535 <filter string="Companies" name="company_id" icon="terp-go-month" context="{'group_by':'company_id'}"/>
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"/>