1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll" groups="base.group_system,group_hr_payroll" sequence="9"/>
6 <menuitem id="payroll_configure" parent="hr.menu_hr_configuration" name="Payroll" groups="base.group_system"/>
7 <menuitem id="menu_hr_payroll_reporting" parent="hr.menu_hr_reporting" name="Payroll" groups="base.group_hr_manager"/>
9 <!-- Passport Views -->
10 <record id="hr_passport_form" model="ir.ui.view">
11 <field name="name">hr.passport.form</field>
12 <field name="model">hr.passport</field>
13 <field name="type">form</field>
14 <field name="arch" type="xml">
15 <form string="Passport">
16 <group col="6" colspan="4">
17 <field name="name" select="1" colspan="4"/>
18 <field name="employee_id" />
20 <group col="2" colspan="2">
21 <separator string="Country & Address" colspan="4"/>
22 <field name="country_id" select="1"/>
23 <field name="address_id" select="1"/>
25 <group col="2" colspan="2">
26 <separator string="Valid From" colspan="2"/>
27 <field name="date_issue" select="1"/>
28 <field name="date_expire" select="1"/>
30 <notebook colspan="4">
31 <page string="Description">
32 <separator string="Description" colspan="2"/>
33 <field name="note" colspan="4" nolabel="1"/>
35 <page string="Contracts" groups="base.group_extended">
36 <field name="contracts_ids" colspan="4" nolabel="1"/>
42 <record id="hr_passport_tree" model="ir.ui.view">
43 <field name="name">hr.passport.tree</field>
44 <field name="model">hr.passport</field>
45 <field name="type">tree</field>
46 <field name="arch" type="xml">
47 <tree string="Passport">
49 <field name="employee_id" />
50 <field name="address_id"/>
51 <field name="country_id" />
52 <field name="date_expire"/>
53 <field name="date_issue" />
58 <record id="view_hr_passport_filter" model="ir.ui.view">
59 <field name="name">hr.passport.select</field>
60 <field name="model">hr.passport</field>
61 <field name="type">search</field>
62 <field name="arch" type="xml">
63 <search string="Search Passport">
64 <group col="8" colspan="4">
66 <field name="employee_id"/>
67 <field name="country_id"/>
68 <field name="address_id"/>
71 <group col="8" colspan="4" expand="0" string="Group By...">
72 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
73 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
74 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
75 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
80 <record id="action_hr_passport_tree" model="ir.actions.act_window">
81 <field name="name">All Passports</field>
82 <field name="res_model">hr.passport</field>
83 <field name="view_type">form</field>
84 <field name="view_id" ref="hr_passport_tree"/>
85 <field name="search_view_id" ref="view_hr_passport_filter"/>
87 <!-- End Passport Views -->
89 <!-- Employee View -->
91 <record id="view_employee_bank_form" model="ir.ui.view">
92 <field name="name">res.partner.bank.form</field>
93 <field name="model">res.partner.bank</field>
94 <field name="type">form</field>
95 <field name="inherit_id" ref="base.view_partner_bank_form"/>
96 <field name="arch" type="xml">
97 <field name="partner_id" position="replace">
98 <field name="partner_id" invisible="context.get('display_partner', False)"/>
103 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
104 <field name="name">hr.hr.employee.view.form2</field>
105 <field name="model">hr.employee</field>
106 <field name="inherit_id" ref="hr.view_employee_form"/>
107 <field name="arch" type="xml">
109 <xpath expr="/form/notebook/page[@string='Personal Information']" position="after">
110 <page string="Miscellaneous">
111 <group colspan="2" col="2">
112 <separator string="Personal Info" colspan="2"/>
113 <field name="bank_account_id" context="{'display_partner':True, 'partner_id':partner_id}"/>
114 <field name="place_of_birth"/>
115 <field name="children"/>
117 <group colspan="2" col="2">
118 <separator string="Job Info" colspan="2"/>
119 <field name="manager" select="1"/>
120 <field name="vehicle" select="1"/>
121 <field name="vehicle_distance" select="1"/>
123 <group col="2" colspan="2" groups="base.group_extended">
124 <separator colspan="2" string="ESI Information"/>
125 <field name="esi_account" string="Account"/>
126 <field name="hospital_id" string="Hospital"/>
127 <field name="medic_exam" select="1" string="Medical Examination"/>
128 <field name="esp_account" select="1"/>
130 <group col="2" colspan="2" groups="base.group_extended">
131 <separator colspan="2" string="Providend Fund"/>
132 <field name="pf_account" string="Account"/>
133 <field name="pg_joining" string="Join Date"/>
136 <page string="Contracts" groups="base.group_extended">
137 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
138 <tree string="Contracts">
140 <field name="job_id"/>
141 <field name="date_start"/>
142 <field name="date_end"/>
143 <field name="working_hours"/>
144 <field name="wage_type_id"/>
147 <form string="Contracts">
148 <group colspan="4" col="6">
149 <field name="name" select="1"/>
150 <field name="job_id"/>
153 <field name="wage_type_id" widget="selection"/>
154 <field name="type_id" widget="selection"/>
156 <notebook colspan="4">
157 <page string="Contract Details">
158 <group col="2" colspan="2">
159 <separator colspan="2" string="Duration"/>
160 <field name="date_start" select="1"/>
161 <field name="date_end" select="1"/>
162 <field name="working_hours"/>
164 <group col="2" colspan="2">
165 <separator colspan="2" string="Advantages"/>
166 <field name="struct_id" select="1"/>
167 <field name="advantages_net"/>
168 <field name="advantages_gross"/>
169 <field name="advantages" nolabel="1" colspan="2"/>
173 <page string="Work Permit">
174 <group col="2" colspan="2">
175 <separator colspan="2" string="Passport"/>
176 <field name="passport_id" domain="[('employee_id','=',parent.id)]"/>
178 <group col="2" colspan="2">
179 <separator colspan="2" string="Valid for"/>
180 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
181 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
182 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
185 <separator colspan="4" string="Notes"/>
186 <field colspan="4" name="notes" nolabel="1"/>
192 <xpath expr="/form/notebook/page[@string='Notes']" position="before">
193 <page string="Salary Structure" groups="base.group_extended">
194 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
195 <tree string="Salary Structure" editable="bottom">
196 <field name="category_id" on_change="onchange_category(category_id)"/>
197 <field name="sequence"/>
201 <field name="amount_type"/>
202 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
206 <page string="Salary Slips" groups="base.group_extended">
207 <field name="slip_ids" colspan="4" nolabel="1" readonly="True">
208 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
209 <field name="number"/>
212 <field name="register_id"/>
213 <field name="basic"/>
214 <field name="allounce"/>
215 <field name="grows"/>
216 <field name="deduction"/>
218 <field name="total_pay" sum="Total Salary Paid"/>
219 <field name="state"/>
220 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
229 <record id="view_employee_passport_form" model="ir.ui.view">
230 <field name="name">hr.employee.passport.form</field>
231 <field name="model">hr.employee</field>
232 <field name="type">form</field>
233 <field name="inherit_id" ref="hr.view_employee_form"/>
234 <field name="arch" type="xml">
235 <field name="identification_id" position="after">
236 <field name="passport_id"/>
240 <!-- End Employee View -->
242 <!-- Contract View -->
243 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
244 <field name="name">hr.contract.view.form</field>
245 <field name="model">hr.contract</field>
246 <field name="type">form</field>
247 <field name="arch" type="xml">
248 <form string="Contract">
249 <group colspan="4" col="6">
250 <field name="name" select="1"/>
251 <field name="employee_id" select="1"/>
252 <field name="job_id"/>
254 <field name="wage_type_id" widget="selection"/>
255 <field name="type_id" widget="selection"/>
257 <notebook colspan="4">
258 <page string="Main Data">
259 <group col="2" colspan="2">
260 <separator colspan="2" string="Duration"/>
261 <field name="date_start" select="1"/>
262 <field name="date_end" select="1"/>
263 <field name="working_hours"/>
264 <field name="working_days_per_week" select="1"/>
265 <separator colspan="2" string="Trial Period"/>
266 <field name="trial_date_start" />
267 <field name="trial_date_end" />
269 <group col="2" colspan="2">
270 <separator colspan="2" string="Advantages"/>
271 <field name="struct_id" select="1"/>
272 <field name="advantages_net"/>
273 <field name="advantages_gross"/>
274 <field name="advantages" nolabel="1" colspan="2"/>
277 <page string="Work Permit">
278 <group col="2" colspan="2">
279 <separator colspan="2" string="Passport"/>
280 <field name="passport_id"/>
282 <group col="2" colspan="2">
283 <separator colspan="2" string="Valid for"/>
284 <field name="visa_no"/>
285 <field name="permit_no"/>
286 <field name="visa_expire"/>
290 <separator colspan="4" string="Notes"/>
291 <field colspan="4" name="notes" nolabel="1"/>
295 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
296 <!-- End Contract View-->
298 <!-- Salary structure -->
299 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
300 <field name="name">hr.payroll.structure.tree</field>
301 <field name="model">hr.payroll.structure</field>
302 <field name="type">tree</field>
303 <field name="arch" type="xml">
304 <tree string="Employee Function">
307 <field name="line_ids"/>
308 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
313 <record id="view_hr_employee_grade_form" model="ir.ui.view">
314 <field name="name">hr.payroll.structure.form</field>
315 <field name="model">hr.payroll.structure</field>
316 <field name="type">form</field>
317 <field name="arch" type="xml">
318 <form string="Employee Function">
319 <group col="6" colspan="4">
320 <field name="name" colspan="4" select="1"/>
321 <field name="code" select="1"/>
322 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
324 <notebook colspan="4">
325 <page string="Salary Structure">
326 <field name="line_ids" nolabel="1" colspan="4"/>
333 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
334 <field name="name">Salary Structure</field>
335 <field name="res_model">hr.payroll.structure</field>
336 <field name="view_type">form</field>
337 <field name="view_id" ref="view_hr_employee_grade_tree"/>
340 id="menu_hr_employee_function"
341 action="action_view_hr_employee_grade_form"
342 parent="payroll_configure"
344 <!-- End Salary structure -->
346 <!-- Holiday Status -->
347 <record model="ir.ui.view" id="view_holiday_status_form1">
348 <field name="name">hr.holidays.status.inherit</field>
349 <field name="model">hr.holidays.status</field>
350 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
351 <field name="type">form</field>
352 <field name="arch" type="xml">
353 <field name="double_validation" position="replace">
354 <group col="2" colspan="2">
355 <separator colspan="4" string="Payroll Configurtion"/>
357 <field name="head_id"/>
358 <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/>
359 <field name="code" readonly="True"/>
361 <group col="2" colspan="2">
362 <separator colspan="4" string="Validation"/>
363 <field name="double_validation"/>
368 <!-- End Holiday Status -->
370 <!-- Payslip Line -->
371 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
372 <field name="name">hr.payslip.line.tree</field>
373 <field name="model">hr.payslip.line</field>
374 <field name="type">tree</field>
375 <field name="arch" type="xml">
376 <tree string="Salary Structure" editable="bottom">
377 <field name="category_id" on_change="onchange_category(category_id)"/>
378 <field name="sequence"/>
382 <field name="amount_type"/>
383 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
387 <record id="view_hr_payslip_line_form" model="ir.ui.view">
388 <field name="name">hr.payslip.line.form</field>
389 <field name="model">hr.payslip.line</field>
390 <field name="type">form</field>
391 <field name="arch" type="xml">
392 <form string="Payslip Line">
393 <group col="6" colspan="4">
394 <field name="name" colspan="4" select="1"/>
395 <field name="code" select="1"/>
396 <field name="slip_id" select="1"/>
397 <field name="employee_id"/>
398 <field name="function_id"/>
400 <group col="2" colspan="2">
401 <separator colspan="4" string="Calculations"/>
402 <field name="category_id" on_change="onchange_category(category_id)"/>
404 <field name="amount_type"/>
405 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
406 <field name="sequence"/>
408 <group col="2" colspan="2">
409 <!-- <separator colspan="4" string="Accounting Informations"/>-->
410 <!-- <field name="account_id"/>-->
411 <!-- <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>-->
412 <separator colspan="4" string="Company contribution"/>
413 <field name="company_contrib"/>
415 <notebook colspan="4">
416 <page string="Function">
417 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
418 <tree string="Function Arguments" editable="bottom">
420 <field name="sequence"/>
421 <field name="from_val"/>
422 <field name="to_val"/>
423 <field name="amount_type"/>
424 <field name="value"/>
428 <page string="Description">
429 <separator colspan="4" string="Description"/>
430 <field name="note" colspan="4" nolabel="1"/>
437 <record id="view_hr_payslip_tree" model="ir.ui.view">
438 <field name="name">hr.payslip.tree</field>
439 <field name="model">hr.payslip</field>
440 <field name="type">tree</field>
441 <field name="arch" type="xml">
442 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
443 <field name="number"/>
444 <field name="employee_id"/>
445 <field name="register_id" invisible="1"/>
448 <field name="grows"/>
450 <field name="state"/>
451 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
456 <record id="view_hr_payslip_form" model="ir.ui.view">
457 <field name="name">hr.payslip.form</field>
458 <field name="model">hr.payslip</field>
459 <field name="type">form</field>
460 <field name="arch" type="xml">
461 <form string="Payslip">
462 <group col="6" colspan="4">
463 <field name="employee_id"/>
465 <field name="number" select="1"/>
468 <notebook colspan="4">
469 <page string="Salary Computation">
470 <field name="line_ids" colspan="4" nolabel="1">
471 <tree string="Salary Structure" editable="bottom">
472 <field name="category_id" on_change="onchange_category(category_id)"/>
473 <field name="sequence"/>
477 <field name="amount_type"/>
478 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
479 <field name="total"/>
482 <group col="6" colspan="4">
483 <separator string="Computation Overview" colspan="6"/>
484 <field name="working_days"/>
485 <field name="holiday_days"/>
486 <field name="worked_days"/>
487 <field name="basic_before_leaves"/>
488 <field name="leaves"/>
489 <field name="basic"/>
490 <field name="allounce"/>
491 <field name="deduction"/>
492 <field name="other_pay"/>
493 <field name="grows"/>
495 <field name="total_pay"/>
498 <page string="Other Informations">
499 <group col="2" colspan="1">
500 <separator colspan="2" string="Other Informations"/>
501 <field name="paid" readonly="1"/>
502 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
503 <field name="register_id" groups="base.group_extended"/>
504 <field name="deg_id" groups="base.group_extended"/>
505 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
508 <separator colspan="4" string="Description"/>
509 <field name="note" colspan="4" nolabel="1"/>
512 <group col="10" colspan="4">
513 <field name="state"/>
514 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
515 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
516 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
517 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
518 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
519 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
520 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
525 <record id="view_hr_payslip_filter" model="ir.ui.view">
526 <field name="name">hr.payslip.select</field>
527 <field name="model">hr.payslip</field>
528 <field name="type">search</field>
529 <field name="arch" type="xml">
530 <search string="Search Payslips">
531 <group col="8" colspan="4">
532 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
533 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
534 <separator orientation="vertical"/>
535 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
536 <separator orientation="vertical"/>
538 <field name="employee_id"/>
539 <field name="number"/>
543 <group col="8" colspan="4" expand="0" string="Group By...">
544 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
545 <separator orientation="vertical"/>
546 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
547 <separator orientation="vertical"/>
548 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
549 <separator orientation="vertical"/>
550 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
555 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
556 <field name="name">Employee Payslip</field>
557 <field name="res_model">hr.payslip</field>
558 <field name="view_type">form</field>
559 <field name="view_id" ref="view_hr_payslip_tree"/>
560 <field name="search_view_id" ref="view_hr_payslip_filter"/>
562 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
564 <!-- Payment Heads -->
565 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
566 <field name="name">hr.allounce.deduction.categoty.form</field>
567 <field name="model">hr.allounce.deduction.categoty</field>
568 <field name="type">form</field>
569 <field name="arch" type="xml">
570 <form string="Salary Heads">
571 <group col="6" colspan="6">
572 <field name="name" select="1"/>
573 <field name="code" select="1"/>
574 <field name="type" select="1"/>
575 <group col="2" colspan="4">
576 <separator colspan="4" string="Based on"/>
577 <field name="base" colspan="4" nolabel="1"/>
579 <group col="2" colspan="2">
580 <separator colspan="4" string="Dynamic Computation"/>
581 <field name="condition"/>
582 <field name="sequence"/>
585 <notebook colspan="4">
586 <page string="Description">
587 <field name="note" colspan="4" nolabel="1"/>
589 <page string="Contribution">
590 <field name="contribute_ids" colspan="4" nolabel="1" height="300">
591 <form string="Company Contribution">
592 <group col="6" colspan="6">
593 <field name="name" select="1"/>
594 <field name="code" select="1"/>
596 <group col="2" colspan="2">
597 <separator colspan="2" string="Contributions"/>
598 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
599 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
600 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
602 <group col="2" colspan="2">
603 <separator colspan="2" string="Other Information"/>
604 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
605 <field name="active" select="1"/>
607 <notebook colspan="4">
608 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
609 <field name="line_ids" colspan="4" nolabel="1">
610 <tree string="Function Arguments" editable="bottom">
612 <field name="sequence"/>
613 <field name="from_val"/>
614 <field name="to_val"/>
615 <field name="amount_type"/>
616 <field name="value"/>
620 <page string="Description">
621 <field name="note" colspan="4" nolabel="1"/>
631 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
632 <field name="name">hr.allounce.deduction.categoty.tree</field>
633 <field name="model">hr.allounce.deduction.categoty</field>
634 <field name="type">tree</field>
635 <field name="arch" type="xml">
636 <tree string="Salary Heads">
641 <field name="condition"/>
642 <field name="sequence"/>
647 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
648 <field name="name">hr.allounce.deduction.categoty.select</field>
649 <field name="model">hr.allounce.deduction.categoty</field>
650 <field name="type">search</field>
651 <field name="arch" type="xml">
652 <search string="Salary Heads">
653 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
654 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
655 <separator orientation="vertical"/>
656 <field name="name" select="1"/>
657 <field name="code" select="1"/>
660 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
661 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
662 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
668 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
669 <field name="name">Salary Heads</field>
670 <field name="res_model">hr.allounce.deduction.categoty</field>
671 <field name="view_type">form</field>
672 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
673 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
676 id="menu_hr_allounce_deduction_tree"
677 action="hr_allounce_deduction_tree"
678 parent="payroll_configure"
680 <!-- End Payment Heads -->
682 <!-- Company Contribution -->
683 <record id="hr_company_contribution_form" model="ir.ui.view">
684 <field name="name">company.contribution.form</field>
685 <field name="model">company.contribution</field>
686 <field name="type">form</field>
687 <field name="arch" type="xml">
688 <form string="Company Contribution">
689 <group col="6" colspan="6">
690 <field name="name" select="1"/>
691 <field name="code" select="1"/>
692 <field name="category_id"/>
694 <group col="2" colspan="2">
695 <separator colspan="2" string="Contributions"/>
696 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
697 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
698 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
700 <group col="2" colspan="2">
701 <separator colspan="2" string="Other Information"/>
702 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
703 <field name="active" select="1"/>
705 <notebook colspan="4">
706 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
707 <field name="line_ids" colspan="4" nolabel="1">
708 <tree string="Function Arguments" editable="bottom">
710 <field name="sequence"/>
711 <field name="from_val"/>
712 <field name="to_val"/>
713 <field name="amount_type"/>
714 <field name="value"/>
718 <page string="Description">
719 <field name="note" colspan="4" nolabel="1"/>
725 <record id="hr_company_contribution_tree" model="ir.ui.view">
726 <field name="name">company.contribution.tree</field>
727 <field name="model">company.contribution</field>
728 <field name="type">tree</field>
729 <field name="arch" type="xml">
730 <tree string="Company Contribution">
733 <field name="contribute_per"/>
734 <field name="amount_type"/>
735 <field name="register_id"/>
736 <field name="category_id"/>
741 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
742 <field name="name">company.contribution.select</field>
743 <field name="model">company.contribution</field>
744 <field name="type">search</field>
745 <field name="arch" type="xml">
746 <search string="Search Company Contribution">
747 <group col="8" colspan="4">
748 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
749 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
750 <separator orientation="vertical"/>
753 <field name="contribute_per"/>
754 <field name="register_id"/>
757 <group col="8" colspan="4" expand="0" string="Group By...">
758 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
759 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
764 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
765 <field name="name">Company Contributions</field>
766 <field name="res_model">company.contribution</field>
767 <field name="view_type">form</field>
768 <field name="view_id" ref="hr_company_contribution_tree"/>
769 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
772 id="menu_hr_company_contribution_tree"
773 action="action_hr_company_contribution_tree"
774 parent="payroll_configure"
776 <!-- End Company Contribution -->
778 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
779 <field name="name">hr.payroll.advice.tree</field>
780 <field name="model">hr.payroll.advice</field>
781 <field name="type">tree</field>
782 <field name="arch" type="xml">
783 <tree string="Bank Advice">
784 <field name="number" select="1"/>
785 <field name="name" select="1"/>
786 <field name="date" select="1"/>
787 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
792 <record id="view_hr_bank_advice_form" model="ir.ui.view">
793 <field name="name">hr.payroll.advice.form</field>
794 <field name="model">hr.payroll.advice</field>
795 <field name="type">form</field>
796 <field name="arch" type="xml">
797 <form string="Bank Advice">
798 <group col="6" colspan="4">
799 <field name="name" colspan="4" select="1"/>
800 <field name="number" select="1"/>
801 <field name="register_id"/>
802 <field name="bank_id"/>
804 <notebook colspan="4">
805 <page string="Paymeny Lines">
806 <field name="line_ids" colspan="4" nolabel="1">
807 <tree string="Payment Lines" editable="bottom">
808 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
810 <field name="amount"/>
811 <field name="bysal"/>
816 <page string="Letter Content">
817 <group colspan="4" col="6">
818 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
819 <field name="chaque_nos"/>
820 <field name="date" select="1"/>
822 <separator colspan="4" string="Letter Details"/>
823 <field name="note" colspan="4" nolabel="1"/>
826 <group col="6" colspan="6">
827 <field name="state"/>
828 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
829 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
830 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
835 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
836 <field name="name">Payment Advice</field>
837 <field name="res_model">hr.payroll.advice</field>
838 <field name="view_type">form</field>
839 <field name="view_mode">tree,form</field>
840 <field name="view_id" ref="view_hr_bank_advice_tree"/>
843 action="action_view_hr_bank_advice_tree"
844 id="hr_menu_payment_advice"
845 parent="menu_hr_root_payroll"
848 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
849 <field name="name">hr.payroll.register.tree</field>
850 <field name="model">hr.payroll.register</field>
851 <field name="type">tree</field>
852 <field name="arch" type="xml">
853 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
854 <field name="number"/>
857 <field name="state"/>
861 <record id="view_hr_payroll_register_form" model="ir.ui.view">
862 <field name="name">hr.payroll.register.form</field>
863 <field name="model">hr.payroll.register</field>
864 <field name="type">form</field>
865 <field name="arch" type="xml">
866 <form string="Payroll Register">
867 <group col="6" colspan="4">
868 <field name="name" colspan="4" select="1"/>
869 <field name="number" select="1"/>
870 <field name="bank_id"/>
871 <field name="date" select="1"/>
873 <notebook colspan="4">
874 <page string="Payslips">
875 <field name="line_ids" colspan="4" nolabel="1">
876 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
877 <field name="number"/>
878 <field name="employee_id"/>
881 <field name="basic"/>
882 <field name="allounce"/>
883 <field name="grows"/>
884 <field name="deduction"/>
886 <field name="state"/>
889 <group col="2" colspan="2">
890 <separator colspan="4" string="Allowance / Deduction"/>
891 <field name="allounce"/>
892 <field name="deduction"/>
894 <group col="2" colspan="2">
895 <separator colspan="4" string="Salary Information"/>
896 <field name="grows"/>
901 <group col="8" colspan="4">
902 <field name="state"/>
903 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
904 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
905 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
906 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
907 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
908 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
913 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
914 <field name="name">Payroll Register</field>
915 <field name="res_model">hr.payroll.register</field>
916 <field name="view_type">form</field>
917 <field name="view_mode">tree,form</field>
920 action="action_view_hr_payroll_register_form"
921 id="hr_menu_payroll_register"
922 parent="menu_hr_root_payroll"
926 Contribution Register
928 <record id="hr_contibution_register_tree" model="ir.ui.view">
929 <field name="name">hr.contibution.register.tree</field>
930 <field name="model">hr.contibution.register</field>
931 <field name="type">tree</field>
932 <field name="arch" type="xml">
933 <tree string="Contribution Registers">
934 <field name="name" select="1"/>
935 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
936 <field name="monthly_total_by_emp"/>
937 <field name="monthly_total_by_comp"/>
941 <record id="hr_contibution_register_form" model="ir.ui.view">
942 <field name="name">hr.contibution.register.form</field>
943 <field name="model">hr.contibution.register</field>
944 <field name="type">form</field>
945 <field name="arch" type="xml">
946 <form string="Contribution">
947 <field name="name" select="1"/>
948 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
949 <notebook colspan="4">
950 <page string="Contribution Lines">
951 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
952 <tree string="Register Lines" editable="top">
955 <field name="employee_id"/>
956 <field name="emp_deduction"/>
957 <field name="comp_deduction"/>
958 <field name="total"/>
962 <page string="Description">
963 <separator colspan="4" string="Description"/>
964 <field name="note" colspan="4" nolabel="1"/>
967 <group col="2" colspan="2">
968 <separator colspan="2" string="Month"/>
969 <field name="monthly_total_by_emp"/>
970 <field name="monthly_total_by_comp"/>
975 <record id="action_contibution_register_form" model="ir.actions.act_window">
976 <field name="name">Contibution Register</field>
977 <field name="res_model">hr.contibution.register</field>
978 <field name="view_type">form</field>
979 <field name="view_id" ref="hr_contibution_register_tree"/>
982 id="menu_action_hr_contibution_register_form"
983 action="action_contibution_register_form"
984 parent="payroll_configure"
986 <record id="hr_contibution_register_line_form" model="ir.ui.view">
987 <field name="name">hr.contibution.register.line.form</field>
988 <field name="model">hr.contibution.register.line</field>
989 <field name="type">form</field>
990 <field name="arch" type="xml">
991 <form string="Contribution">
994 <field name="employee_id"/>
995 <field name="emp_deduction"/>
996 <field name="comp_deduction"/>
997 <field name="total"/>