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"/>
122 <field name="medic_exam" select="1" string="Medical Examination"/>
125 <page string="Contracts" groups="base.group_extended">
126 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
127 <tree string="Contracts">
129 <field name="job_id"/>
130 <field name="date_start"/>
131 <field name="date_end"/>
132 <field name="working_hours"/>
133 <field name="wage_type_id"/>
136 <form string="Contracts">
137 <group colspan="4" col="6">
138 <field name="name" select="1"/>
139 <field name="job_id"/>
142 <field name="wage_type_id" widget="selection"/>
143 <field name="type_id" widget="selection"/>
145 <notebook colspan="4">
146 <page string="Contract Details">
147 <group col="2" colspan="2">
148 <separator colspan="2" string="Duration"/>
149 <field name="date_start" select="1"/>
150 <field name="date_end" select="1"/>
151 <field name="working_hours"/>
153 <group col="2" colspan="2">
154 <separator colspan="2" string="Advantages"/>
155 <field name="struct_id" select="1"/>
156 <field name="advantages_net"/>
157 <field name="advantages_gross"/>
158 <field name="advantages" nolabel="1" colspan="2"/>
162 <page string="Work Permit">
163 <group col="2" colspan="2">
164 <separator colspan="2" string="Passport"/>
165 <field name="passport_id" domain="[('employee_id','=',parent.id)]"/>
167 <group col="2" colspan="2">
168 <separator colspan="2" string="Valid for"/>
169 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
170 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
171 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
174 <separator colspan="4" string="Notes"/>
175 <field colspan="4" name="notes" nolabel="1"/>
181 <xpath expr="/form/notebook/page[@string='Notes']" position="before">
182 <page string="Salary Structure" groups="base.group_extended">
183 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
184 <tree string="Salary Structure" editable="bottom">
185 <field name="category_id" on_change="onchange_category(category_id)"/>
186 <field name="sequence"/>
190 <field name="amount_type"/>
191 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
200 <record id="view_employee_passport_form" model="ir.ui.view">
201 <field name="name">hr.employee.passport.form</field>
202 <field name="model">hr.employee</field>
203 <field name="type">form</field>
204 <field name="inherit_id" ref="hr.view_employee_form"/>
205 <field name="arch" type="xml">
206 <field name="passport_id" position="replace">
207 <field name="passport_id"/>
208 <field name="otherid"/>
213 <!-- End Employee View -->
215 <!-- Contract View -->
216 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
217 <field name="name">hr.contract.view.form</field>
218 <field name="model">hr.contract</field>
219 <field name="type">form</field>
220 <field name="arch" type="xml">
221 <form string="Contract">
222 <group colspan="4" col="6">
223 <field name="name" select="1"/>
224 <field name="employee_id" select="1"/>
225 <field name="job_id"/>
227 <field name="wage_type_id" widget="selection"/>
228 <field name="type_id" widget="selection"/>
230 <notebook colspan="4">
231 <page string="Main Data">
232 <group col="2" colspan="2">
233 <separator colspan="2" string="Duration"/>
234 <field name="date_start" select="1"/>
235 <field name="date_end" select="1"/>
236 <field name="working_hours"/>
237 <field name="working_days_per_week" select="1"/>
238 <separator colspan="2" string="Trial Period"/>
239 <field name="trial_date_start" />
240 <field name="trial_date_end" />
242 <group col="2" colspan="2">
243 <separator colspan="2" string="Advantages"/>
244 <field name="struct_id" select="1"/>
245 <field name="advantages_gross"/>
246 <field name="advantages_net"/>
247 <field name="advantages" nolabel="1" colspan="2"/>
250 <page string="Work Permit">
251 <group col="2" colspan="2">
252 <separator colspan="2" string="Passport"/>
253 <field name="passport_id" domain="[('employee_id','=',employee_id)]"/>
255 <group col="2" colspan="2">
256 <separator colspan="2" string="Valid for"/>
257 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
258 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
259 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
263 <separator colspan="4" string="Notes"/>
264 <field colspan="4" name="notes" nolabel="1"/>
268 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
269 <!-- End Contract View-->
271 <!-- Salary structure -->
272 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
273 <field name="name">hr.payroll.structure.tree</field>
274 <field name="model">hr.payroll.structure</field>
275 <field name="type">tree</field>
276 <field name="arch" type="xml">
277 <tree string="Employee Function">
280 <field name="line_ids"/>
281 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
286 <record id="view_hr_employee_grade_form" model="ir.ui.view">
287 <field name="name">hr.payroll.structure.form</field>
288 <field name="model">hr.payroll.structure</field>
289 <field name="type">form</field>
290 <field name="arch" type="xml">
291 <form string="Employee Function">
292 <group col="6" colspan="4">
293 <field name="name" colspan="4" select="1"/>
294 <field name="code" select="1"/>
295 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
297 <notebook colspan="4">
298 <page string="Salary Structure">
299 <field name="line_ids" nolabel="1" colspan="4"/>
306 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
307 <field name="name">Salary Structure</field>
308 <field name="res_model">hr.payroll.structure</field>
309 <field name="view_type">form</field>
310 <field name="view_id" ref="view_hr_employee_grade_tree"/>
313 id="menu_hr_employee_function"
314 action="action_view_hr_employee_grade_form"
315 parent="payroll_configure"
317 <!-- End Salary structure -->
319 <!-- Holiday Status -->
320 <record model="ir.ui.view" id="view_holiday_status_form1">
321 <field name="name">hr.holidays.status.inherit</field>
322 <field name="model">hr.holidays.status</field>
323 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
324 <field name="type">form</field>
325 <field name="arch" type="xml">
326 <field name="double_validation" position="replace">
327 <group col="2" colspan="2">
328 <separator colspan="4" string="Payroll Configurtion"/>
330 <field name="head_id"/>
331 <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/>
332 <field name="code" readonly="True"/>
334 <group col="2" colspan="2">
335 <separator colspan="4" string="Validation"/>
336 <field name="double_validation"/>
341 <!-- End Holiday Status -->
343 <!-- Payslip Line -->
344 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
345 <field name="name">hr.payslip.line.tree</field>
346 <field name="model">hr.payslip.line</field>
347 <field name="type">tree</field>
348 <field name="arch" type="xml">
349 <tree string="Salary Structure" editable="bottom">
350 <field name="category_id" on_change="onchange_category(category_id)"/>
351 <field name="sequence"/>
355 <field name="amount_type"/>
356 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
360 <record id="view_hr_payslip_line_form" model="ir.ui.view">
361 <field name="name">hr.payslip.line.form</field>
362 <field name="model">hr.payslip.line</field>
363 <field name="type">form</field>
364 <field name="arch" type="xml">
365 <form string="Payslip Line">
366 <group col="6" colspan="4">
367 <field name="name" colspan="4" select="1"/>
368 <field name="code" select="1"/>
369 <field name="slip_id" select="1"/>
370 <field name="employee_id"/>
371 <field name="function_id"/>
373 <group col="2" colspan="2">
374 <separator colspan="4" string="Calculations"/>
375 <field name="category_id" on_change="onchange_category(category_id)"/>
377 <field name="amount_type"/>
378 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
379 <field name="sequence"/>
381 <group col="2" colspan="2">
382 <separator colspan="4" string="Company contribution"/>
383 <field name="company_contrib"/>
385 <notebook colspan="4">
386 <page string="Function">
387 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
388 <tree string="Function Arguments" editable="bottom">
390 <field name="sequence"/>
391 <field name="from_val"/>
392 <field name="to_val"/>
393 <field name="amount_type"/>
394 <field name="value"/>
398 <page string="Description">
399 <separator colspan="4" string="Description"/>
400 <field name="note" colspan="4" nolabel="1"/>
407 <record id="view_hr_payslip_tree" model="ir.ui.view">
408 <field name="name">hr.payslip.tree</field>
409 <field name="model">hr.payslip</field>
410 <field name="type">tree</field>
411 <field name="arch" type="xml">
412 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
413 <field name="number"/>
414 <field name="employee_id"/>
415 <field name="register_id" invisible="1"/>
418 <field name="grows"/>
420 <field name="state"/>
421 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
426 <record id="view_hr_payslip_form" model="ir.ui.view">
427 <field name="name">hr.payslip.form</field>
428 <field name="model">hr.payslip</field>
429 <field name="type">form</field>
430 <field name="arch" type="xml">
431 <form string="Payslip">
432 <group col="6" colspan="4">
433 <field name="employee_id"/>
435 <field name="number" select="1"/>
438 <notebook colspan="4">
439 <page string="Salary Computation">
440 <field name="line_ids" colspan="4" nolabel="1">
441 <tree string="Salary Structure" editable="bottom">
442 <field name="category_id" on_change="onchange_category(category_id)"/>
443 <field name="sequence"/>
447 <field name="amount_type"/>
448 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
449 <field name="total"/>
452 <group col="6" colspan="4">
453 <separator string="Computation Overview" colspan="6"/>
454 <field name="working_days"/>
455 <field name="holiday_days"/>
456 <field name="worked_days"/>
457 <field name="basic_before_leaves"/>
458 <field name="leaves"/>
459 <field name="basic"/>
460 <field name="allounce"/>
461 <field name="deduction"/>
462 <field name="other_pay"/>
463 <field name="grows"/>
465 <field name="total_pay"/>
468 <page string="Other Informations">
469 <group col="2" colspan="1">
470 <separator colspan="2" string="Other Informations"/>
471 <field name="paid" readonly="1"/>
472 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
473 <field name="register_id" groups="base.group_extended"/>
474 <field name="deg_id" groups="base.group_extended"/>
475 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
478 <separator colspan="4" string="Description"/>
479 <field name="note" colspan="4" nolabel="1"/>
482 <group col="10" colspan="4">
483 <field name="state"/>
484 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
485 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
486 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
487 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
488 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
489 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
490 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
495 <record id="view_hr_payslip_filter" model="ir.ui.view">
496 <field name="name">hr.payslip.select</field>
497 <field name="model">hr.payslip</field>
498 <field name="type">search</field>
499 <field name="arch" type="xml">
500 <search string="Search Payslips">
501 <group col="8" colspan="4">
502 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
503 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
504 <separator orientation="vertical"/>
505 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
506 <separator orientation="vertical"/>
508 <field name="employee_id"/>
509 <field name="number"/>
513 <group col="8" colspan="4" expand="0" string="Group By...">
514 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
515 <separator orientation="vertical"/>
516 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
517 <separator orientation="vertical"/>
518 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
519 <separator orientation="vertical"/>
520 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
525 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
526 <field name="name">Employee Payslip</field>
527 <field name="res_model">hr.payslip</field>
528 <field name="view_type">form</field>
529 <field name="view_id" ref="view_hr_payslip_tree"/>
530 <field name="search_view_id" ref="view_hr_payslip_filter"/>
532 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
534 <!-- Payment Heads -->
535 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
536 <field name="name">hr.allounce.deduction.categoty.form</field>
537 <field name="model">hr.allounce.deduction.categoty</field>
538 <field name="type">form</field>
539 <field name="arch" type="xml">
540 <form string="Salary Heads">
541 <group col="6" colspan="6">
542 <field name="name" select="1"/>
543 <field name="code" select="1"/>
544 <field name="type" select="1"/>
545 <group col="2" colspan="4">
546 <separator colspan="4" string="Based on"/>
547 <field name="base" colspan="4" nolabel="1"/>
549 <group col="2" colspan="2">
550 <separator colspan="4" string="Dynamic Computation"/>
551 <field name="condition"/>
552 <field name="sequence"/>
555 <notebook colspan="4">
556 <page string="Description">
557 <field name="note" colspan="4" nolabel="1"/>
559 <page string="Contribution">
560 <field name="contribute_ids" colspan="4" nolabel="1" height="300">
561 <form string="Company Contribution">
562 <group col="6" colspan="6">
563 <field name="name" select="1"/>
564 <field name="code" select="1"/>
566 <group col="2" colspan="2">
567 <separator colspan="2" string="Contributions"/>
568 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
569 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
570 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
572 <group col="2" colspan="2">
573 <separator colspan="2" string="Other Information"/>
574 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
575 <field name="active" select="1"/>
577 <notebook colspan="4">
578 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
579 <field name="line_ids" colspan="4" nolabel="1">
580 <tree string="Function Arguments" editable="bottom">
582 <field name="sequence"/>
583 <field name="from_val"/>
584 <field name="to_val"/>
585 <field name="amount_type"/>
586 <field name="value"/>
590 <page string="Description">
591 <field name="note" colspan="4" nolabel="1"/>
601 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
602 <field name="name">hr.allounce.deduction.categoty.tree</field>
603 <field name="model">hr.allounce.deduction.categoty</field>
604 <field name="type">tree</field>
605 <field name="arch" type="xml">
606 <tree string="Salary Heads">
611 <field name="condition"/>
612 <field name="sequence"/>
617 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
618 <field name="name">hr.allounce.deduction.categoty.select</field>
619 <field name="model">hr.allounce.deduction.categoty</field>
620 <field name="type">search</field>
621 <field name="arch" type="xml">
622 <search string="Salary Heads">
623 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
624 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
625 <separator orientation="vertical"/>
626 <field name="name" select="1"/>
627 <field name="code" select="1"/>
630 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
631 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
632 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
638 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
639 <field name="name">Salary Heads</field>
640 <field name="res_model">hr.allounce.deduction.categoty</field>
641 <field name="view_type">form</field>
642 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
643 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
646 id="menu_hr_allounce_deduction_tree"
647 action="hr_allounce_deduction_tree"
648 parent="payroll_configure"
650 <!-- End Payment Heads -->
652 <!-- Company Contribution -->
653 <record id="hr_company_contribution_form" model="ir.ui.view">
654 <field name="name">company.contribution.form</field>
655 <field name="model">company.contribution</field>
656 <field name="type">form</field>
657 <field name="arch" type="xml">
658 <form string="Company Contribution">
659 <group col="6" colspan="6">
660 <field name="name" select="1"/>
661 <field name="code" select="1"/>
662 <field name="category_id"/>
664 <group col="2" colspan="2">
665 <separator colspan="2" string="Contributions"/>
666 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
667 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
668 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
670 <group col="2" colspan="2">
671 <separator colspan="2" string="Other Information"/>
672 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
673 <field name="active" select="1"/>
675 <notebook colspan="4">
676 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
677 <field name="line_ids" colspan="4" nolabel="1">
678 <tree string="Function Arguments" editable="bottom">
680 <field name="sequence"/>
681 <field name="from_val"/>
682 <field name="to_val"/>
683 <field name="amount_type"/>
684 <field name="value"/>
688 <page string="Description">
689 <field name="note" colspan="4" nolabel="1"/>
695 <record id="hr_company_contribution_tree" model="ir.ui.view">
696 <field name="name">company.contribution.tree</field>
697 <field name="model">company.contribution</field>
698 <field name="type">tree</field>
699 <field name="arch" type="xml">
700 <tree string="Company Contribution">
703 <field name="contribute_per"/>
704 <field name="amount_type"/>
705 <field name="register_id"/>
706 <field name="category_id"/>
711 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
712 <field name="name">company.contribution.select</field>
713 <field name="model">company.contribution</field>
714 <field name="type">search</field>
715 <field name="arch" type="xml">
716 <search string="Search Company Contribution">
717 <group col="8" colspan="4">
718 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
719 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
720 <separator orientation="vertical"/>
723 <field name="contribute_per"/>
724 <field name="register_id"/>
727 <group col="8" colspan="4" expand="0" string="Group By...">
728 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
729 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
734 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
735 <field name="name">Company Contributions</field>
736 <field name="res_model">company.contribution</field>
737 <field name="view_type">form</field>
738 <field name="view_id" ref="hr_company_contribution_tree"/>
739 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
742 id="menu_hr_company_contribution_tree"
743 action="action_hr_company_contribution_tree"
744 parent="payroll_configure"
746 <!-- End Company Contribution -->
748 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
749 <field name="name">hr.payroll.advice.tree</field>
750 <field name="model">hr.payroll.advice</field>
751 <field name="type">tree</field>
752 <field name="arch" type="xml">
753 <tree string="Bank Advice">
754 <field name="number" select="1"/>
755 <field name="name" select="1"/>
756 <field name="date" select="1"/>
757 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
762 <record id="view_hr_bank_advice_form" model="ir.ui.view">
763 <field name="name">hr.payroll.advice.form</field>
764 <field name="model">hr.payroll.advice</field>
765 <field name="type">form</field>
766 <field name="arch" type="xml">
767 <form string="Bank Advice">
768 <group col="6" colspan="4">
769 <field name="name" colspan="4" select="1"/>
770 <field name="number" select="1"/>
771 <field name="register_id"/>
772 <field name="bank_id"/>
774 <notebook colspan="4">
775 <page string="Paymeny Lines">
776 <field name="line_ids" colspan="4" nolabel="1">
777 <tree string="Payment Lines" editable="bottom">
778 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
780 <field name="amount"/>
781 <field name="bysal"/>
786 <page string="Letter Content">
787 <group colspan="4" col="6">
788 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
789 <field name="chaque_nos"/>
790 <field name="date" select="1"/>
792 <separator colspan="4" string="Letter Details"/>
793 <field name="note" colspan="4" nolabel="1"/>
796 <group col="6" colspan="6">
797 <field name="state"/>
798 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
799 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
800 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
805 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
806 <field name="name">Payment Advice</field>
807 <field name="res_model">hr.payroll.advice</field>
808 <field name="view_type">form</field>
809 <field name="view_mode">tree,form</field>
810 <field name="view_id" ref="view_hr_bank_advice_tree"/>
813 action="action_view_hr_bank_advice_tree"
814 id="hr_menu_payment_advice"
815 parent="menu_hr_root_payroll"
818 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
819 <field name="name">hr.payroll.register.tree</field>
820 <field name="model">hr.payroll.register</field>
821 <field name="type">tree</field>
822 <field name="arch" type="xml">
823 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
824 <field name="number"/>
827 <field name="state"/>
831 <record id="view_hr_payroll_register_form" model="ir.ui.view">
832 <field name="name">hr.payroll.register.form</field>
833 <field name="model">hr.payroll.register</field>
834 <field name="type">form</field>
835 <field name="arch" type="xml">
836 <form string="Payroll Register">
837 <group col="6" colspan="4">
838 <field name="name" colspan="4" select="1"/>
839 <field name="number" select="1"/>
840 <field name="bank_id"/>
841 <field name="date" select="1"/>
843 <notebook colspan="4">
844 <page string="Payslips">
845 <field name="line_ids" colspan="4" nolabel="1">
846 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
847 <field name="number"/>
848 <field name="employee_id"/>
851 <field name="basic"/>
852 <field name="allounce"/>
853 <field name="grows"/>
854 <field name="deduction"/>
856 <field name="state"/>
859 <group col="2" colspan="2">
860 <separator colspan="4" string="Allowance / Deduction"/>
861 <field name="allounce"/>
862 <field name="deduction"/>
864 <group col="2" colspan="2">
865 <separator colspan="4" string="Salary Information"/>
866 <field name="grows"/>
871 <group col="8" colspan="4">
872 <field name="state"/>
873 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
874 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
875 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
876 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
877 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
878 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
883 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
884 <field name="name">Payroll Register</field>
885 <field name="res_model">hr.payroll.register</field>
886 <field name="view_type">form</field>
887 <field name="view_mode">tree,form</field>
890 action="action_view_hr_payroll_register_form"
891 id="hr_menu_payroll_register"
892 parent="menu_hr_root_payroll"
896 Contribution Register
898 <record id="hr_contibution_register_tree" model="ir.ui.view">
899 <field name="name">hr.contibution.register.tree</field>
900 <field name="model">hr.contibution.register</field>
901 <field name="type">tree</field>
902 <field name="arch" type="xml">
903 <tree string="Contribution Registers">
904 <field name="name" select="1"/>
905 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
906 <field name="monthly_total_by_emp"/>
907 <field name="monthly_total_by_comp"/>
911 <record id="hr_contibution_register_form" model="ir.ui.view">
912 <field name="name">hr.contibution.register.form</field>
913 <field name="model">hr.contibution.register</field>
914 <field name="type">form</field>
915 <field name="arch" type="xml">
916 <form string="Contribution">
917 <field name="name" select="1"/>
918 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
919 <notebook colspan="4">
920 <page string="Contribution Lines">
921 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
922 <tree string="Register Lines" editable="top">
925 <field name="employee_id"/>
926 <field name="emp_deduction"/>
927 <field name="comp_deduction"/>
928 <field name="total"/>
932 <page string="Description">
933 <separator colspan="4" string="Description"/>
934 <field name="note" colspan="4" nolabel="1"/>
937 <group col="2" colspan="2">
938 <separator colspan="2" string="Month"/>
939 <field name="monthly_total_by_emp"/>
940 <field name="monthly_total_by_comp"/>
945 <record id="action_contibution_register_form" model="ir.actions.act_window">
946 <field name="name">Contibution Register</field>
947 <field name="res_model">hr.contibution.register</field>
948 <field name="view_type">form</field>
949 <field name="view_id" ref="hr_contibution_register_tree"/>
952 id="menu_action_hr_contibution_register_form"
953 action="action_contibution_register_form"
954 parent="payroll_configure"
956 <record id="hr_contibution_register_line_form" model="ir.ui.view">
957 <field name="name">hr.contibution.register.line.form</field>
958 <field name="model">hr.contibution.register.line</field>
959 <field name="type">form</field>
960 <field name="arch" type="xml">
961 <form string="Contribution">
964 <field name="employee_id"/>
965 <field name="emp_deduction"/>
966 <field name="comp_deduction"/>
967 <field name="total"/>
973 <act_window name="Payslips"
974 domain="[('employee_id', '=', active_id)]"
975 res_model="hr.payslip"
976 src_model="hr.employee"
977 view_id ="eval('view_hr_payslip_tree')"
978 id="act_hr_employee_payslip_list"/>