1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll" sequence="9"/>
6 <menuitem id="payroll_configure" parent="hr.menu_hr_configuration" name="Payroll" groups="base.group_hr_manager"/>
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 -->
90 <record id="view_employee_bank_form" model="ir.ui.view">
91 <field name="name">res.partner.bank.form</field>
92 <field name="model">res.partner.bank</field>
93 <field name="type">form</field>
94 <field name="inherit_id" ref="base.view_partner_bank_form"/>
95 <field name="arch" type="xml">
96 <field name="partner_id" position="replace">
97 <field name="partner_id" invisible="context.get('display_partner', False)"/>
102 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
103 <field name="name">hr.hr.employee.view.form2</field>
104 <field name="model">hr.employee</field>
105 <field name="inherit_id" ref="hr.view_employee_form"/>
106 <field name="arch" type="xml">
108 <xpath expr="/form/notebook/page[@string='Personal Information']" position="after">
109 <page string="Miscellaneous">
110 <group colspan="2" col="2">
111 <separator string="Personal Info" colspan="2"/>
112 <field name="bank_account_id" context="{'display_partner':True, 'partner_id':partner_id}"/>
113 <field name="place_of_birth"/>
114 <field name="children"/>
116 <group colspan="2" col="2">
117 <separator string="Job Info" colspan="2"/>
118 <field name="manager" select="1"/>
119 <field name="vehicle" select="1"/>
120 <field name="vehicle_distance" select="1"/>
121 <field name="medic_exam" select="1" string="Medical Examination"/>
124 <page string="Contracts" groups="base.group_extended">
125 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
126 <tree string="Contracts">
128 <field name="job_id"/>
129 <field name="date_start"/>
130 <field name="date_end"/>
131 <field name="working_hours"/>
132 <field name="wage_type_id"/>
135 <form string="Contracts">
136 <group colspan="4" col="6">
137 <field name="name" select="1"/>
138 <field name="job_id"/>
141 <field name="wage_type_id" widget="selection"/>
142 <field name="type_id" widget="selection"/>
144 <notebook colspan="4">
145 <page string="Contract Details">
146 <group col="2" colspan="2">
147 <separator colspan="2" string="Duration"/>
148 <field name="date_start" select="1"/>
149 <field name="date_end" select="1"/>
150 <field name="working_hours"/>
152 <group col="2" colspan="2">
153 <separator colspan="2" string="Advantages"/>
154 <field name="struct_id" select="1"/>
155 <field name="advantages_gross"/>
156 <field name="advantages_net"/>
157 <field name="advantages" nolabel="1" colspan="2"/>
160 <page string="Work Permit">
161 <group col="2" colspan="2">
162 <separator colspan="2" string="Passport"/>
163 <field name="passport_id" domain="[('employee_id','=',parent.id)]"/>
165 <group col="2" colspan="2">
166 <separator colspan="2" string="Valid for"/>
167 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
168 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
169 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
172 <separator colspan="4" string="Notes"/>
173 <field colspan="4" name="notes" nolabel="1"/>
179 <xpath expr="/form/notebook/page[@string='Notes']" position="before">
180 <page string="Salary Structure" groups="base.group_extended">
181 <group col="10" colspan="4">
182 <separator string="Salary Computation" colspan="10"/>
183 <field name="basic"/>
184 <field name="advantages_gross"/>
185 <field name="gross"/>
186 <field name="advantages_net"/>
189 <separator string="Employee specific allowances and deductions" colspan="4"/>
190 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
191 <tree string="Salary Structure" editable="bottom">
192 <field name="category_id" on_change="onchange_category(category_id)"/>
193 <field name="sequence" groups="base.group_extended"/>
197 <field name="amount_type"/>
198 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
200 <form string="Payslip Line">
201 <group col="6" colspan="4">
202 <field name="name" colspan="4" select="1"/>
203 <field name="code" select="1"/>
205 <group col="2" colspan="2">
206 <separator colspan="4" string="Calculations"/>
207 <field name="category_id" on_change="onchange_category(category_id)"/>
209 <field name="amount_type"/>
210 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
211 <field name="sequence" groups="base.group_extended"/>
213 <group col="2" colspan="2">
214 <separator colspan="4" string="Company contribution"/>
215 <field name="company_contrib"/>
217 <notebook colspan="4">
218 <page string="Function">
219 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
220 <tree string="Function Arguments" editable="bottom">
222 <field name="sequence" groups="base.group_extended"/>
223 <field name="from_val"/>
224 <field name="to_val"/>
225 <field name="amount_type"/>
226 <field name="value"/>
230 <page string="Description">
231 <separator colspan="4" string="Description"/>
232 <field name="note" colspan="4" nolabel="1"/>
242 <record id="view_employee_passport_form" model="ir.ui.view">
243 <field name="name">hr.employee.passport.form</field>
244 <field name="model">hr.employee</field>
245 <field name="type">form</field>
246 <field name="inherit_id" ref="hr.view_employee_form"/>
247 <field name="arch" type="xml">
248 <field name="passport_id" position="replace">
249 <field name="passport_id"/>
250 <field name="otherid"/>
255 <!-- End Employee View -->
257 <!-- Contract View -->
258 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
259 <field name="name">hr.contract.view.form</field>
260 <field name="model">hr.contract</field>
261 <field name="type">form</field>
262 <field name="arch" type="xml">
263 <form string="Contract">
264 <group colspan="4" col="6">
265 <field name="name" select="1"/>
266 <field name="employee_id" select="1"/>
267 <field name="job_id"/>
269 <field name="wage_type_id" widget="selection"/>
270 <field name="type_id" widget="selection"/>
272 <notebook colspan="4">
273 <page string="Main Data">
274 <group col="2" colspan="2">
275 <separator colspan="2" string="Duration"/>
276 <field name="date_start" select="1"/>
277 <field name="date_end" select="1"/>
278 <field name="working_hours"/>
279 <field name="working_days_per_week" select="1"/>
280 <separator colspan="2" string="Trial Period"/>
281 <field name="trial_date_start" />
282 <field name="trial_date_end" />
284 <group col="2" colspan="2">
285 <separator colspan="2" string="Advantages"/>
286 <field name="struct_id" select="1"/>
287 <field name="advantages_gross"/>
288 <field name="advantages_net"/>
289 <field name="advantages" nolabel="1" colspan="2"/>
292 <page string="Work Permit">
293 <group col="2" colspan="2">
294 <separator colspan="2" string="Passport"/>
295 <field name="passport_id" domain="[('employee_id','=',employee_id)]"/>
297 <group col="2" colspan="2">
298 <separator colspan="2" string="Valid for"/>
299 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
300 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
301 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
305 <separator colspan="4" string="Notes"/>
306 <field colspan="4" name="notes" nolabel="1"/>
310 <!--menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/-->
311 <!-- End Contract View-->
313 <!-- Salary structure -->
314 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
315 <field name="name">hr.payroll.structure.tree</field>
316 <field name="model">hr.payroll.structure</field>
317 <field name="type">tree</field>
318 <field name="arch" type="xml">
319 <tree string="Employee Function">
322 <field name="line_ids"/>
323 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
328 <record id="view_hr_employee_grade_form" model="ir.ui.view">
329 <field name="name">hr.payroll.structure.form</field>
330 <field name="model">hr.payroll.structure</field>
331 <field name="type">form</field>
332 <field name="arch" type="xml">
333 <form string="Employee Function">
334 <group col="6" colspan="4">
335 <field name="name" colspan="4" select="1"/>
336 <field name="code" select="1"/>
337 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
339 <notebook colspan="4">
340 <page string="Salary Structure">
341 <field name="line_ids" nolabel="1" colspan="4">
342 <form string="Payslip Line">
343 <group col="6" colspan="4">
344 <field name="name" colspan="4" select="1"/>
345 <field name="code" select="1"/>
347 <group col="2" colspan="2">
348 <separator colspan="4" string="Calculations"/>
349 <field name="category_id" on_change="onchange_category(category_id)"/>
351 <field name="amount_type"/>
352 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
353 <field name="sequence" groups="base.group_extended"/>
355 <group col="2" colspan="2">
356 <separator colspan="4" string="Company contribution"/>
357 <field name="company_contrib"/>
359 <notebook colspan="4">
360 <page string="Function">
361 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
362 <tree string="Function Arguments" editable="bottom">
364 <field name="sequence" groups="base.group_extended"/>
365 <field name="from_val"/>
366 <field name="to_val"/>
367 <field name="amount_type"/>
368 <field name="value"/>
372 <page string="Description">
373 <separator colspan="4" string="Description"/>
374 <field name="note" colspan="4" nolabel="1"/>
385 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
386 <field name="name">Salary Structure</field>
387 <field name="res_model">hr.payroll.structure</field>
388 <field name="view_type">form</field>
389 <field name="view_id" ref="view_hr_employee_grade_tree"/>
392 id="menu_hr_employee_function"
393 action="action_view_hr_employee_grade_form"
394 parent="payroll_configure"
396 <!-- End Salary structure -->
398 <!-- Holiday Status -->
399 <record model="ir.ui.view" id="view_holiday_status_form1">
400 <field name="name">hr.holidays.status.inherit</field>
401 <field name="model">hr.holidays.status</field>
402 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
403 <field name="type">form</field>
404 <field name="arch" type="xml">
405 <field name="double_validation" position="replace">
406 <group col="2" colspan="2">
407 <separator colspan="4" string="Payroll Configurtion"/>
409 <field name="head_id"/>
410 <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/>
411 <field name="code" readonly="True"/>
413 <group col="2" colspan="2">
414 <separator colspan="4" string="Validation"/>
415 <field name="double_validation"/>
420 <!-- End Holiday Status -->
422 <!-- Payslip Line -->
423 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
424 <field name="name">hr.payslip.line.tree</field>
425 <field name="model">hr.payslip.line</field>
426 <field name="type">tree</field>
427 <field name="arch" type="xml">
428 <tree string="Salary Structure" editable="bottom">
429 <field name="category_id" on_change="onchange_category(category_id)"/>
430 <field name="sequence" groups="base.group_extended"/>
434 <field name="amount_type"/>
435 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
439 <record id="view_hr_payslip_line_form" model="ir.ui.view">
440 <field name="name">hr.payslip.line.form</field>
441 <field name="model">hr.payslip.line</field>
442 <field name="type">form</field>
443 <field name="arch" type="xml">
444 <form string="Payslip Line">
445 <group col="6" colspan="4">
446 <field name="name" colspan="4" select="1"/>
447 <field name="code" select="1"/>
448 <field name="slip_id" select="1"/>
449 <field name="employee_id"/>
450 <field name="function_id"/>
452 <group col="2" colspan="2">
453 <separator colspan="4" string="Calculations"/>
454 <field name="category_id" on_change="onchange_category(category_id)"/>
456 <field name="amount_type"/>
457 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
458 <field name="sequence" groups="base.group_extended"/>
460 <group col="2" colspan="2">
461 <separator colspan="4" string="Company contribution"/>
462 <field name="company_contrib"/>
464 <notebook colspan="4">
465 <page string="Function">
466 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
467 <tree string="Function Arguments" editable="bottom">
469 <field name="sequence" groups="base.group_extended"/>
470 <field name="from_val"/>
471 <field name="to_val"/>
472 <field name="amount_type"/>
473 <field name="value"/>
477 <page string="Description">
478 <separator colspan="4" string="Description"/>
479 <field name="note" colspan="4" nolabel="1"/>
486 <record id="view_hr_payslip_tree" model="ir.ui.view">
487 <field name="name">hr.payslip.tree</field>
488 <field name="model">hr.payslip</field>
489 <field name="type">tree</field>
490 <field name="arch" type="xml">
491 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
492 <field name="number"/>
493 <field name="employee_id"/>
494 <field name="register_id" invisible="1"/>
497 <field name="grows"/>
499 <field name="state"/>
500 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
505 <record id="view_hr_payslip_form" model="ir.ui.view">
506 <field name="name">hr.payslip.form</field>
507 <field name="model">hr.payslip</field>
508 <field name="type">form</field>
509 <field name="arch" type="xml">
510 <form string="Payslip">
511 <group col="6" colspan="4">
512 <field name="employee_id"/>
514 <field name="number" select="1"/>
517 <notebook colspan="4">
518 <page string="Salary Computation">
519 <field name="line_ids" colspan="4" nolabel="1">
520 <tree string="Salary Structure" editable="bottom">
521 <field name="category_id" on_change="onchange_category(category_id)"/>
522 <field name="sequence" groups="base.group_extended"/>
526 <field name="amount_type"/>
527 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
528 <field name="total"/>
530 <form string="Payslip Line">
531 <group col="6" colspan="4">
532 <field name="name" colspan="4" select="1"/>
533 <field name="code" select="1"/>
535 <group col="2" colspan="2">
536 <separator colspan="4" string="Calculations"/>
537 <field name="category_id" on_change="onchange_category(category_id)"/>
539 <field name="amount_type"/>
540 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
541 <field name="sequence" groups="base.group_extended"/>
543 <group col="2" colspan="2">
544 <separator colspan="4" string="Company contribution"/>
545 <field name="company_contrib"/>
547 <notebook colspan="4">
548 <page string="Function">
549 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
550 <tree string="Function Arguments" editable="bottom">
552 <field name="sequence" groups="base.group_extended"/>
553 <field name="from_val"/>
554 <field name="to_val"/>
555 <field name="amount_type"/>
556 <field name="value"/>
560 <page string="Description">
561 <separator colspan="4" string="Description"/>
562 <field name="note" colspan="4" nolabel="1"/>
567 <group col="6" colspan="4">
568 <separator string="Computation Overview" colspan="6"/>
569 <field name="working_days"/>
570 <field name="holiday_days"/>
571 <field name="worked_days"/>
572 <field name="basic_before_leaves"/>
573 <field name="leaves"/>
574 <field name="basic"/>
575 <field name="allounce"/>
576 <field name="deduction"/>
577 <field name="other_pay"/>
578 <field name="grows"/>
580 <field name="total_pay"/>
583 <page string="Other Informations">
584 <group col="2" colspan="1">
585 <separator colspan="2" string="Other Informations"/>
586 <field name="paid" readonly="1"/>
587 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
588 <field name="register_id" groups="base.group_extended"/>
589 <field name="deg_id" groups="base.group_extended"/>
590 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
593 <separator colspan="4" string="Description"/>
594 <field name="note" colspan="4" nolabel="1"/>
597 <group col="10" colspan="4">
598 <field name="state"/>
599 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
600 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
601 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
602 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
603 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
604 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
605 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
610 <record id="view_hr_payslip_filter" model="ir.ui.view">
611 <field name="name">hr.payslip.select</field>
612 <field name="model">hr.payslip</field>
613 <field name="type">search</field>
614 <field name="arch" type="xml">
615 <search string="Search Payslips">
616 <group col="8" colspan="4">
617 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
618 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
619 <separator orientation="vertical"/>
620 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
621 <separator orientation="vertical"/>
623 <field name="employee_id"/>
624 <field name="number"/>
628 <group col="8" colspan="4" expand="0" string="Group By...">
629 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
630 <separator orientation="vertical"/>
631 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
632 <separator orientation="vertical"/>
633 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
634 <separator orientation="vertical"/>
635 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
640 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
641 <field name="name">Employee Payslip</field>
642 <field name="res_model">hr.payslip</field>
643 <field name="view_type">form</field>
644 <field name="view_id" ref="view_hr_payslip_tree"/>
645 <field name="search_view_id" ref="view_hr_payslip_filter"/>
647 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
649 <!-- Payment Heads -->
650 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
651 <field name="name">hr.allounce.deduction.categoty.form</field>
652 <field name="model">hr.allounce.deduction.categoty</field>
653 <field name="type">form</field>
654 <field name="arch" type="xml">
655 <form string="Salary Heads">
656 <group col="6" colspan="6">
657 <field name="name" select="1"/>
658 <field name="code" select="1"/>
659 <field name="type" select="1"/>
660 <group col="2" colspan="4">
661 <separator colspan="4" string="Based on"/>
662 <field name="base" colspan="4" nolabel="1"/>
664 <group col="2" colspan="2">
665 <separator colspan="4" string="Dynamic Computation"/>
666 <field name="condition"/>
667 <field name="sequence"/>
670 <notebook colspan="4">
671 <page string="Description">
672 <field name="note" colspan="4" nolabel="1"/>
674 <page string="Contribution">
675 <field name="contribute_ids" colspan="4" nolabel="1" height="300">
676 <form string="Company Contribution">
677 <group col="6" colspan="6">
678 <field name="name" select="1"/>
679 <field name="code" select="1"/>
681 <group col="2" colspan="2">
682 <separator colspan="2" string="Contributions"/>
683 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
684 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
685 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
687 <group col="2" colspan="2">
688 <separator colspan="2" string="Other Information"/>
689 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
690 <field name="active" select="1"/>
692 <notebook colspan="4">
693 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
694 <field name="line_ids" colspan="4" nolabel="1">
695 <tree string="Function Arguments" editable="bottom">
697 <field name="sequence"/>
698 <field name="from_val"/>
699 <field name="to_val"/>
700 <field name="amount_type"/>
701 <field name="value"/>
705 <page string="Description">
706 <field name="note" colspan="4" nolabel="1"/>
716 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
717 <field name="name">hr.allounce.deduction.categoty.tree</field>
718 <field name="model">hr.allounce.deduction.categoty</field>
719 <field name="type">tree</field>
720 <field name="arch" type="xml">
721 <tree string="Salary Heads">
726 <field name="condition"/>
727 <field name="sequence"/>
732 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
733 <field name="name">hr.allounce.deduction.categoty.select</field>
734 <field name="model">hr.allounce.deduction.categoty</field>
735 <field name="type">search</field>
736 <field name="arch" type="xml">
737 <search string="Salary Heads">
738 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
739 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
740 <separator orientation="vertical"/>
741 <field name="name" select="1"/>
742 <field name="code" select="1"/>
745 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
746 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
747 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
753 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
754 <field name="name">Salary Heads</field>
755 <field name="res_model">hr.allounce.deduction.categoty</field>
756 <field name="view_type">form</field>
757 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
758 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
761 id="menu_hr_allounce_deduction_tree"
762 action="hr_allounce_deduction_tree"
763 parent="payroll_configure"
765 <!-- End Payment Heads -->
767 <!-- Company Contribution -->
768 <record id="hr_company_contribution_form" model="ir.ui.view">
769 <field name="name">company.contribution.form</field>
770 <field name="model">company.contribution</field>
771 <field name="type">form</field>
772 <field name="arch" type="xml">
773 <form string="Company Contribution">
774 <group col="6" colspan="6">
775 <field name="name" select="1"/>
776 <field name="code" select="1"/>
777 <field name="category_id"/>
779 <group col="2" colspan="2">
780 <separator colspan="2" string="Contributions"/>
781 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
782 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
783 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
785 <group col="2" colspan="2">
786 <separator colspan="2" string="Other Information"/>
787 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
788 <field name="active" select="1"/>
790 <notebook colspan="4">
791 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
792 <field name="line_ids" colspan="4" nolabel="1">
793 <tree string="Function Arguments" editable="bottom">
795 <field name="sequence"/>
796 <field name="from_val"/>
797 <field name="to_val"/>
798 <field name="amount_type"/>
799 <field name="value"/>
803 <page string="Description">
804 <field name="note" colspan="4" nolabel="1"/>
810 <record id="hr_company_contribution_tree" model="ir.ui.view">
811 <field name="name">company.contribution.tree</field>
812 <field name="model">company.contribution</field>
813 <field name="type">tree</field>
814 <field name="arch" type="xml">
815 <tree string="Company Contribution">
818 <field name="contribute_per"/>
819 <field name="amount_type"/>
820 <field name="register_id"/>
821 <field name="category_id"/>
826 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
827 <field name="name">company.contribution.select</field>
828 <field name="model">company.contribution</field>
829 <field name="type">search</field>
830 <field name="arch" type="xml">
831 <search string="Search Company Contribution">
832 <group col="8" colspan="4">
833 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
834 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
835 <separator orientation="vertical"/>
838 <field name="contribute_per"/>
839 <field name="register_id"/>
842 <group col="8" colspan="4" expand="0" string="Group By...">
843 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
844 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
849 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
850 <field name="name">Company Contributions</field>
851 <field name="res_model">company.contribution</field>
852 <field name="view_type">form</field>
853 <field name="view_id" ref="hr_company_contribution_tree"/>
854 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
857 id="menu_hr_company_contribution_tree"
858 action="action_hr_company_contribution_tree"
859 parent="payroll_configure"
861 <!-- End Company Contribution -->
863 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
864 <field name="name">hr.payroll.advice.tree</field>
865 <field name="model">hr.payroll.advice</field>
866 <field name="type">tree</field>
867 <field name="arch" type="xml">
868 <tree string="Bank Advice">
869 <field name="number" select="1"/>
870 <field name="name" select="1"/>
871 <field name="date" select="1"/>
872 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
877 <record id="view_hr_bank_advice_form" model="ir.ui.view">
878 <field name="name">hr.payroll.advice.form</field>
879 <field name="model">hr.payroll.advice</field>
880 <field name="type">form</field>
881 <field name="arch" type="xml">
882 <form string="Bank Advice">
883 <group col="6" colspan="4">
884 <field name="name" colspan="4" select="1"/>
885 <field name="number" select="1"/>
886 <field name="register_id"/>
887 <field name="bank_id"/>
889 <notebook colspan="4">
890 <page string="Paymeny Lines">
891 <field name="line_ids" colspan="4" nolabel="1">
892 <tree string="Payment Lines" editable="bottom">
893 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
895 <field name="amount"/>
896 <field name="bysal"/>
901 <page string="Letter Content">
902 <group colspan="4" col="6">
903 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
904 <field name="chaque_nos"/>
905 <field name="date" select="1"/>
907 <separator colspan="4" string="Letter Details"/>
908 <field name="note" colspan="4" nolabel="1"/>
911 <group col="6" colspan="6">
912 <field name="state"/>
913 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
914 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
915 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
920 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
921 <field name="name">Payment Advice</field>
922 <field name="res_model">hr.payroll.advice</field>
923 <field name="view_type">form</field>
924 <field name="view_mode">tree,form</field>
925 <field name="view_id" ref="view_hr_bank_advice_tree"/>
928 action="action_view_hr_bank_advice_tree"
929 id="hr_menu_payment_advice"
930 parent="menu_hr_root_payroll"
933 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
934 <field name="name">hr.payroll.register.tree</field>
935 <field name="model">hr.payroll.register</field>
936 <field name="type">tree</field>
937 <field name="arch" type="xml">
938 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
939 <field name="number"/>
942 <field name="state"/>
946 <record id="view_hr_payroll_register_form" model="ir.ui.view">
947 <field name="name">hr.payroll.register.form</field>
948 <field name="model">hr.payroll.register</field>
949 <field name="type">form</field>
950 <field name="arch" type="xml">
951 <form string="Payroll Register">
952 <group col="6" colspan="4">
953 <field name="name" colspan="4" select="1"/>
954 <field name="number" select="1"/>
955 <field name="bank_id"/>
956 <field name="date" select="1"/>
958 <notebook colspan="4">
959 <page string="Payslips">
960 <field name="line_ids" colspan="4" nolabel="1">
961 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
962 <field name="number"/>
963 <field name="employee_id"/>
966 <field name="basic"/>
967 <field name="allounce"/>
968 <field name="grows"/>
969 <field name="deduction"/>
971 <field name="state"/>
974 <group col="2" colspan="2">
975 <separator colspan="4" string="Allowance / Deduction"/>
976 <field name="allounce"/>
977 <field name="deduction"/>
979 <group col="2" colspan="2">
980 <separator colspan="4" string="Salary Information"/>
981 <field name="grows"/>
986 <group col="8" colspan="4">
987 <field name="state"/>
988 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
989 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
990 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
991 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
992 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
993 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
998 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
999 <field name="name">Payroll Register</field>
1000 <field name="res_model">hr.payroll.register</field>
1001 <field name="view_type">form</field>
1002 <field name="view_mode">tree,form</field>
1005 action="action_view_hr_payroll_register_form"
1006 id="hr_menu_payroll_register"
1007 parent="menu_hr_root_payroll"
1011 Contribution Register
1013 <record id="hr_contibution_register_tree" model="ir.ui.view">
1014 <field name="name">hr.contibution.register.tree</field>
1015 <field name="model">hr.contibution.register</field>
1016 <field name="type">tree</field>
1017 <field name="arch" type="xml">
1018 <tree string="Contribution Registers">
1019 <field name="name" select="1"/>
1020 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
1021 <field name="monthly_total_by_emp"/>
1022 <field name="monthly_total_by_comp"/>
1026 <record id="hr_contibution_register_form" model="ir.ui.view">
1027 <field name="name">hr.contibution.register.form</field>
1028 <field name="model">hr.contibution.register</field>
1029 <field name="type">form</field>
1030 <field name="arch" type="xml">
1031 <form string="Contribution">
1032 <field name="name" select="1"/>
1033 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
1034 <notebook colspan="4">
1035 <page string="Contribution Lines">
1036 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
1037 <tree string="Register Lines" editable="top">
1038 <field name="code"/>
1039 <field name="name"/>
1040 <field name="employee_id"/>
1041 <field name="emp_deduction"/>
1042 <field name="comp_deduction"/>
1043 <field name="total"/>
1047 <page string="Description">
1048 <separator colspan="4" string="Description"/>
1049 <field name="note" colspan="4" nolabel="1"/>
1052 <group col="2" colspan="2">
1053 <separator colspan="2" string="Month"/>
1054 <field name="monthly_total_by_emp"/>
1055 <field name="monthly_total_by_comp"/>
1060 <record id="action_contibution_register_form" model="ir.actions.act_window">
1061 <field name="name">Contibution Register</field>
1062 <field name="res_model">hr.contibution.register</field>
1063 <field name="view_type">form</field>
1064 <field name="view_id" ref="hr_contibution_register_tree"/>
1067 id="menu_action_hr_contibution_register_form"
1068 action="action_contibution_register_form"
1069 parent="payroll_configure"
1071 <record id="hr_contibution_register_line_form" model="ir.ui.view">
1072 <field name="name">hr.contibution.register.line.form</field>
1073 <field name="model">hr.contibution.register.line</field>
1074 <field name="type">form</field>
1075 <field name="arch" type="xml">
1076 <form string="Contribution">
1077 <field name="name"/>
1078 <field name="code"/>
1079 <field name="employee_id"/>
1080 <field name="emp_deduction"/>
1081 <field name="comp_deduction"/>
1082 <field name="total"/>
1088 <act_window name="Payslips"
1089 domain="[('employee_id', '=', active_id)]"
1090 res_model="hr.payslip"
1091 src_model="hr.employee"
1092 view_id ="eval('view_hr_payslip_tree')"
1093 id="act_hr_employee_payslip_list"/>