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_net"/>
246 <field name="advantages_gross"/>
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="Accounting Informations"/>-->
383 <!-- <field name="account_id"/>-->
384 <!-- <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>-->
385 <separator colspan="4" string="Company contribution"/>
386 <field name="company_contrib"/>
388 <notebook colspan="4">
389 <page string="Function">
390 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
391 <tree string="Function Arguments" editable="bottom">
393 <field name="sequence"/>
394 <field name="from_val"/>
395 <field name="to_val"/>
396 <field name="amount_type"/>
397 <field name="value"/>
401 <page string="Description">
402 <separator colspan="4" string="Description"/>
403 <field name="note" colspan="4" nolabel="1"/>
410 <record id="view_hr_payslip_tree" model="ir.ui.view">
411 <field name="name">hr.payslip.tree</field>
412 <field name="model">hr.payslip</field>
413 <field name="type">tree</field>
414 <field name="arch" type="xml">
415 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
416 <field name="number"/>
417 <field name="employee_id"/>
418 <field name="register_id" invisible="1"/>
421 <field name="grows"/>
423 <field name="state"/>
424 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
429 <record id="view_hr_payslip_form" model="ir.ui.view">
430 <field name="name">hr.payslip.form</field>
431 <field name="model">hr.payslip</field>
432 <field name="type">form</field>
433 <field name="arch" type="xml">
434 <form string="Payslip">
435 <group col="6" colspan="4">
436 <field name="employee_id"/>
438 <field name="number" select="1"/>
441 <notebook colspan="4">
442 <page string="Salary Computation">
443 <field name="line_ids" colspan="4" nolabel="1">
444 <tree string="Salary Structure" editable="bottom">
445 <field name="category_id" on_change="onchange_category(category_id)"/>
446 <field name="sequence"/>
450 <field name="amount_type"/>
451 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
452 <field name="total"/>
455 <group col="6" colspan="4">
456 <separator string="Computation Overview" colspan="6"/>
457 <field name="working_days"/>
458 <field name="holiday_days"/>
459 <field name="worked_days"/>
460 <field name="basic_before_leaves"/>
461 <field name="leaves"/>
462 <field name="basic"/>
463 <field name="allounce"/>
464 <field name="deduction"/>
465 <field name="other_pay"/>
466 <field name="grows"/>
468 <field name="total_pay"/>
471 <page string="Other Informations">
472 <group col="2" colspan="1">
473 <separator colspan="2" string="Other Informations"/>
474 <field name="paid" readonly="1"/>
475 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
476 <field name="register_id" groups="base.group_extended"/>
477 <field name="deg_id" groups="base.group_extended"/>
478 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
481 <separator colspan="4" string="Description"/>
482 <field name="note" colspan="4" nolabel="1"/>
485 <group col="10" colspan="4">
486 <field name="state"/>
487 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
488 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
489 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
490 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
491 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
492 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
493 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
498 <record id="view_hr_payslip_filter" model="ir.ui.view">
499 <field name="name">hr.payslip.select</field>
500 <field name="model">hr.payslip</field>
501 <field name="type">search</field>
502 <field name="arch" type="xml">
503 <search string="Search Payslips">
504 <group col="8" colspan="4">
505 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
506 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
507 <separator orientation="vertical"/>
508 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
509 <separator orientation="vertical"/>
511 <field name="employee_id"/>
512 <field name="number"/>
516 <group col="8" colspan="4" expand="0" string="Group By...">
517 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
518 <separator orientation="vertical"/>
519 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
520 <separator orientation="vertical"/>
521 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
522 <separator orientation="vertical"/>
523 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
528 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
529 <field name="name">Employee Payslip</field>
530 <field name="res_model">hr.payslip</field>
531 <field name="view_type">form</field>
532 <field name="view_id" ref="view_hr_payslip_tree"/>
533 <field name="search_view_id" ref="view_hr_payslip_filter"/>
535 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
537 <!-- Payment Heads -->
538 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
539 <field name="name">hr.allounce.deduction.categoty.form</field>
540 <field name="model">hr.allounce.deduction.categoty</field>
541 <field name="type">form</field>
542 <field name="arch" type="xml">
543 <form string="Salary Heads">
544 <group col="6" colspan="6">
545 <field name="name" select="1"/>
546 <field name="code" select="1"/>
547 <field name="type" select="1"/>
548 <group col="2" colspan="4">
549 <separator colspan="4" string="Based on"/>
550 <field name="base" colspan="4" nolabel="1"/>
552 <group col="2" colspan="2">
553 <separator colspan="4" string="Dynamic Computation"/>
554 <field name="condition"/>
555 <field name="sequence"/>
558 <notebook colspan="4">
559 <page string="Description">
560 <field name="note" colspan="4" nolabel="1"/>
562 <page string="Contribution">
563 <field name="contribute_ids" colspan="4" nolabel="1" height="300">
564 <form string="Company Contribution">
565 <group col="6" colspan="6">
566 <field name="name" select="1"/>
567 <field name="code" select="1"/>
569 <group col="2" colspan="2">
570 <separator colspan="2" string="Contributions"/>
571 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
572 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
573 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
575 <group col="2" colspan="2">
576 <separator colspan="2" string="Other Information"/>
577 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
578 <field name="active" select="1"/>
580 <notebook colspan="4">
581 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
582 <field name="line_ids" colspan="4" nolabel="1">
583 <tree string="Function Arguments" editable="bottom">
585 <field name="sequence"/>
586 <field name="from_val"/>
587 <field name="to_val"/>
588 <field name="amount_type"/>
589 <field name="value"/>
593 <page string="Description">
594 <field name="note" colspan="4" nolabel="1"/>
604 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
605 <field name="name">hr.allounce.deduction.categoty.tree</field>
606 <field name="model">hr.allounce.deduction.categoty</field>
607 <field name="type">tree</field>
608 <field name="arch" type="xml">
609 <tree string="Salary Heads">
614 <field name="condition"/>
615 <field name="sequence"/>
620 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
621 <field name="name">hr.allounce.deduction.categoty.select</field>
622 <field name="model">hr.allounce.deduction.categoty</field>
623 <field name="type">search</field>
624 <field name="arch" type="xml">
625 <search string="Salary Heads">
626 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
627 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
628 <separator orientation="vertical"/>
629 <field name="name" select="1"/>
630 <field name="code" select="1"/>
633 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
634 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
635 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
641 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
642 <field name="name">Salary Heads</field>
643 <field name="res_model">hr.allounce.deduction.categoty</field>
644 <field name="view_type">form</field>
645 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
646 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
649 id="menu_hr_allounce_deduction_tree"
650 action="hr_allounce_deduction_tree"
651 parent="payroll_configure"
653 <!-- End Payment Heads -->
655 <!-- Company Contribution -->
656 <record id="hr_company_contribution_form" model="ir.ui.view">
657 <field name="name">company.contribution.form</field>
658 <field name="model">company.contribution</field>
659 <field name="type">form</field>
660 <field name="arch" type="xml">
661 <form string="Company Contribution">
662 <group col="6" colspan="6">
663 <field name="name" select="1"/>
664 <field name="code" select="1"/>
665 <field name="category_id"/>
667 <group col="2" colspan="2">
668 <separator colspan="2" string="Contributions"/>
669 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
670 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
671 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
673 <group col="2" colspan="2">
674 <separator colspan="2" string="Other Information"/>
675 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
676 <field name="active" select="1"/>
678 <notebook colspan="4">
679 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
680 <field name="line_ids" colspan="4" nolabel="1">
681 <tree string="Function Arguments" editable="bottom">
683 <field name="sequence"/>
684 <field name="from_val"/>
685 <field name="to_val"/>
686 <field name="amount_type"/>
687 <field name="value"/>
691 <page string="Description">
692 <field name="note" colspan="4" nolabel="1"/>
698 <record id="hr_company_contribution_tree" model="ir.ui.view">
699 <field name="name">company.contribution.tree</field>
700 <field name="model">company.contribution</field>
701 <field name="type">tree</field>
702 <field name="arch" type="xml">
703 <tree string="Company Contribution">
706 <field name="contribute_per"/>
707 <field name="amount_type"/>
708 <field name="register_id"/>
709 <field name="category_id"/>
714 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
715 <field name="name">company.contribution.select</field>
716 <field name="model">company.contribution</field>
717 <field name="type">search</field>
718 <field name="arch" type="xml">
719 <search string="Search Company Contribution">
720 <group col="8" colspan="4">
721 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
722 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
723 <separator orientation="vertical"/>
726 <field name="contribute_per"/>
727 <field name="register_id"/>
730 <group col="8" colspan="4" expand="0" string="Group By...">
731 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
732 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
737 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
738 <field name="name">Company Contributions</field>
739 <field name="res_model">company.contribution</field>
740 <field name="view_type">form</field>
741 <field name="view_id" ref="hr_company_contribution_tree"/>
742 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
745 id="menu_hr_company_contribution_tree"
746 action="action_hr_company_contribution_tree"
747 parent="payroll_configure"
749 <!-- End Company Contribution -->
751 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
752 <field name="name">hr.payroll.advice.tree</field>
753 <field name="model">hr.payroll.advice</field>
754 <field name="type">tree</field>
755 <field name="arch" type="xml">
756 <tree string="Bank Advice">
757 <field name="number" select="1"/>
758 <field name="name" select="1"/>
759 <field name="date" select="1"/>
760 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
765 <record id="view_hr_bank_advice_form" model="ir.ui.view">
766 <field name="name">hr.payroll.advice.form</field>
767 <field name="model">hr.payroll.advice</field>
768 <field name="type">form</field>
769 <field name="arch" type="xml">
770 <form string="Bank Advice">
771 <group col="6" colspan="4">
772 <field name="name" colspan="4" select="1"/>
773 <field name="number" select="1"/>
774 <field name="register_id"/>
775 <field name="bank_id"/>
777 <notebook colspan="4">
778 <page string="Paymeny Lines">
779 <field name="line_ids" colspan="4" nolabel="1">
780 <tree string="Payment Lines" editable="bottom">
781 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
783 <field name="amount"/>
784 <field name="bysal"/>
789 <page string="Letter Content">
790 <group colspan="4" col="6">
791 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
792 <field name="chaque_nos"/>
793 <field name="date" select="1"/>
795 <separator colspan="4" string="Letter Details"/>
796 <field name="note" colspan="4" nolabel="1"/>
799 <group col="6" colspan="6">
800 <field name="state"/>
801 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
802 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
803 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
808 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
809 <field name="name">Payment Advice</field>
810 <field name="res_model">hr.payroll.advice</field>
811 <field name="view_type">form</field>
812 <field name="view_mode">tree,form</field>
813 <field name="view_id" ref="view_hr_bank_advice_tree"/>
816 action="action_view_hr_bank_advice_tree"
817 id="hr_menu_payment_advice"
818 parent="menu_hr_root_payroll"
821 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
822 <field name="name">hr.payroll.register.tree</field>
823 <field name="model">hr.payroll.register</field>
824 <field name="type">tree</field>
825 <field name="arch" type="xml">
826 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
827 <field name="number"/>
830 <field name="state"/>
834 <record id="view_hr_payroll_register_form" model="ir.ui.view">
835 <field name="name">hr.payroll.register.form</field>
836 <field name="model">hr.payroll.register</field>
837 <field name="type">form</field>
838 <field name="arch" type="xml">
839 <form string="Payroll Register">
840 <group col="6" colspan="4">
841 <field name="name" colspan="4" select="1"/>
842 <field name="number" select="1"/>
843 <field name="bank_id"/>
844 <field name="date" select="1"/>
846 <notebook colspan="4">
847 <page string="Payslips">
848 <field name="line_ids" colspan="4" nolabel="1">
849 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
850 <field name="number"/>
851 <field name="employee_id"/>
854 <field name="basic"/>
855 <field name="allounce"/>
856 <field name="grows"/>
857 <field name="deduction"/>
859 <field name="state"/>
862 <group col="2" colspan="2">
863 <separator colspan="4" string="Allowance / Deduction"/>
864 <field name="allounce"/>
865 <field name="deduction"/>
867 <group col="2" colspan="2">
868 <separator colspan="4" string="Salary Information"/>
869 <field name="grows"/>
874 <group col="8" colspan="4">
875 <field name="state"/>
876 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
877 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
878 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
879 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
880 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
881 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
886 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
887 <field name="name">Payroll Register</field>
888 <field name="res_model">hr.payroll.register</field>
889 <field name="view_type">form</field>
890 <field name="view_mode">tree,form</field>
893 action="action_view_hr_payroll_register_form"
894 id="hr_menu_payroll_register"
895 parent="menu_hr_root_payroll"
899 Contribution Register
901 <record id="hr_contibution_register_tree" model="ir.ui.view">
902 <field name="name">hr.contibution.register.tree</field>
903 <field name="model">hr.contibution.register</field>
904 <field name="type">tree</field>
905 <field name="arch" type="xml">
906 <tree string="Contribution Registers">
907 <field name="name" select="1"/>
908 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
909 <field name="monthly_total_by_emp"/>
910 <field name="monthly_total_by_comp"/>
914 <record id="hr_contibution_register_form" model="ir.ui.view">
915 <field name="name">hr.contibution.register.form</field>
916 <field name="model">hr.contibution.register</field>
917 <field name="type">form</field>
918 <field name="arch" type="xml">
919 <form string="Contribution">
920 <field name="name" select="1"/>
921 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
922 <notebook colspan="4">
923 <page string="Contribution Lines">
924 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
925 <tree string="Register Lines" editable="top">
928 <field name="employee_id"/>
929 <field name="emp_deduction"/>
930 <field name="comp_deduction"/>
931 <field name="total"/>
935 <page string="Description">
936 <separator colspan="4" string="Description"/>
937 <field name="note" colspan="4" nolabel="1"/>
940 <group col="2" colspan="2">
941 <separator colspan="2" string="Month"/>
942 <field name="monthly_total_by_emp"/>
943 <field name="monthly_total_by_comp"/>
948 <record id="action_contibution_register_form" model="ir.actions.act_window">
949 <field name="name">Contibution Register</field>
950 <field name="res_model">hr.contibution.register</field>
951 <field name="view_type">form</field>
952 <field name="view_id" ref="hr_contibution_register_tree"/>
955 id="menu_action_hr_contibution_register_form"
956 action="action_contibution_register_form"
957 parent="payroll_configure"
959 <record id="hr_contibution_register_line_form" model="ir.ui.view">
960 <field name="name">hr.contibution.register.line.form</field>
961 <field name="model">hr.contibution.register.line</field>
962 <field name="type">form</field>
963 <field name="arch" type="xml">
964 <form string="Contribution">
967 <field name="employee_id"/>
968 <field name="emp_deduction"/>
969 <field name="comp_deduction"/>
970 <field name="total"/>
976 <act_window name="Payslips"
977 domain="[('employee_id', '=', active_id)]"
978 res_model="hr.payslip"
979 src_model="hr.employee"
980 view_id ="eval('view_hr_payslip_tree')"
981 id="act_hr_employee_payslip_list"/>