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)"/>
195 <page string="Salary Slips" groups="base.group_extended">
196 <field name="slip_ids" colspan="4" nolabel="1" readonly="True">
197 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
198 <field name="number"/>
201 <field name="register_id"/>
202 <field name="basic"/>
203 <field name="allounce"/>
204 <field name="grows"/>
205 <field name="deduction"/>
207 <field name="total_pay" sum="Total Salary Paid"/>
208 <field name="state"/>
209 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
218 <record id="view_employee_passport_form" model="ir.ui.view">
219 <field name="name">hr.employee.passport.form</field>
220 <field name="model">hr.employee</field>
221 <field name="type">form</field>
222 <field name="inherit_id" ref="hr.view_employee_form"/>
223 <field name="arch" type="xml">
224 <field name="identification_id" position="after">
225 <field name="passport_id"/>
229 <!-- End Employee View -->
231 <!-- Contract View -->
232 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
233 <field name="name">hr.contract.view.form</field>
234 <field name="model">hr.contract</field>
235 <field name="type">form</field>
236 <field name="arch" type="xml">
237 <form string="Contract">
238 <group colspan="4" col="6">
239 <field name="name" select="1"/>
240 <field name="employee_id" select="1"/>
241 <field name="job_id"/>
243 <field name="wage_type_id" widget="selection"/>
244 <field name="type_id" widget="selection"/>
246 <notebook colspan="4">
247 <page string="Main Data">
248 <group col="2" colspan="2">
249 <separator colspan="2" string="Duration"/>
250 <field name="date_start" select="1"/>
251 <field name="date_end" select="1"/>
252 <field name="working_hours"/>
253 <field name="working_days_per_week" select="1"/>
254 <separator colspan="2" string="Trial Period"/>
255 <field name="trial_date_start" />
256 <field name="trial_date_end" />
258 <group col="2" colspan="2">
259 <separator colspan="2" string="Advantages"/>
260 <field name="struct_id" select="1"/>
261 <field name="advantages_net"/>
262 <field name="advantages_gross"/>
263 <field name="advantages" nolabel="1" colspan="2"/>
266 <page string="Work Permit">
267 <group col="2" colspan="2">
268 <separator colspan="2" string="Passport"/>
269 <field name="passport_id" domain="[('employee_id','=',employee_id)]"/>
271 <group col="2" colspan="2">
272 <separator colspan="2" string="Valid for"/>
273 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
274 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
275 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
279 <separator colspan="4" string="Notes"/>
280 <field colspan="4" name="notes" nolabel="1"/>
284 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
285 <!-- End Contract View-->
287 <!-- Salary structure -->
288 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
289 <field name="name">hr.payroll.structure.tree</field>
290 <field name="model">hr.payroll.structure</field>
291 <field name="type">tree</field>
292 <field name="arch" type="xml">
293 <tree string="Employee Function">
296 <field name="line_ids"/>
297 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
302 <record id="view_hr_employee_grade_form" model="ir.ui.view">
303 <field name="name">hr.payroll.structure.form</field>
304 <field name="model">hr.payroll.structure</field>
305 <field name="type">form</field>
306 <field name="arch" type="xml">
307 <form string="Employee Function">
308 <group col="6" colspan="4">
309 <field name="name" colspan="4" select="1"/>
310 <field name="code" select="1"/>
311 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
313 <notebook colspan="4">
314 <page string="Salary Structure">
315 <field name="line_ids" nolabel="1" colspan="4"/>
322 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
323 <field name="name">Salary Structure</field>
324 <field name="res_model">hr.payroll.structure</field>
325 <field name="view_type">form</field>
326 <field name="view_id" ref="view_hr_employee_grade_tree"/>
329 id="menu_hr_employee_function"
330 action="action_view_hr_employee_grade_form"
331 parent="payroll_configure"
333 <!-- End Salary structure -->
335 <!-- Holiday Status -->
336 <record model="ir.ui.view" id="view_holiday_status_form1">
337 <field name="name">hr.holidays.status.inherit</field>
338 <field name="model">hr.holidays.status</field>
339 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
340 <field name="type">form</field>
341 <field name="arch" type="xml">
342 <field name="double_validation" position="replace">
343 <group col="2" colspan="2">
344 <separator colspan="4" string="Payroll Configurtion"/>
346 <field name="head_id"/>
347 <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/>
348 <field name="code" readonly="True"/>
350 <group col="2" colspan="2">
351 <separator colspan="4" string="Validation"/>
352 <field name="double_validation"/>
357 <!-- End Holiday Status -->
359 <!-- Payslip Line -->
360 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
361 <field name="name">hr.payslip.line.tree</field>
362 <field name="model">hr.payslip.line</field>
363 <field name="type">tree</field>
364 <field name="arch" type="xml">
365 <tree string="Salary Structure" editable="bottom">
366 <field name="category_id" on_change="onchange_category(category_id)"/>
367 <field name="sequence"/>
371 <field name="amount_type"/>
372 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
376 <record id="view_hr_payslip_line_form" model="ir.ui.view">
377 <field name="name">hr.payslip.line.form</field>
378 <field name="model">hr.payslip.line</field>
379 <field name="type">form</field>
380 <field name="arch" type="xml">
381 <form string="Payslip Line">
382 <group col="6" colspan="4">
383 <field name="name" colspan="4" select="1"/>
384 <field name="code" select="1"/>
385 <field name="slip_id" select="1"/>
386 <field name="employee_id"/>
387 <field name="function_id"/>
389 <group col="2" colspan="2">
390 <separator colspan="4" string="Calculations"/>
391 <field name="category_id" on_change="onchange_category(category_id)"/>
393 <field name="amount_type"/>
394 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
395 <field name="sequence"/>
397 <group col="2" colspan="2">
398 <!-- <separator colspan="4" string="Accounting Informations"/>-->
399 <!-- <field name="account_id"/>-->
400 <!-- <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>-->
401 <separator colspan="4" string="Company contribution"/>
402 <field name="company_contrib"/>
404 <notebook colspan="4">
405 <page string="Function">
406 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
407 <tree string="Function Arguments" editable="bottom">
409 <field name="sequence"/>
410 <field name="from_val"/>
411 <field name="to_val"/>
412 <field name="amount_type"/>
413 <field name="value"/>
417 <page string="Description">
418 <separator colspan="4" string="Description"/>
419 <field name="note" colspan="4" nolabel="1"/>
426 <record id="view_hr_payslip_tree" model="ir.ui.view">
427 <field name="name">hr.payslip.tree</field>
428 <field name="model">hr.payslip</field>
429 <field name="type">tree</field>
430 <field name="arch" type="xml">
431 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
432 <field name="number"/>
433 <field name="employee_id"/>
434 <field name="register_id" invisible="1"/>
437 <field name="grows"/>
439 <field name="state"/>
440 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
445 <record id="view_hr_payslip_form" model="ir.ui.view">
446 <field name="name">hr.payslip.form</field>
447 <field name="model">hr.payslip</field>
448 <field name="type">form</field>
449 <field name="arch" type="xml">
450 <form string="Payslip">
451 <group col="6" colspan="4">
452 <field name="employee_id"/>
454 <field name="number" select="1"/>
457 <notebook colspan="4">
458 <page string="Salary Computation">
459 <field name="line_ids" colspan="4" nolabel="1">
460 <tree string="Salary Structure" editable="bottom">
461 <field name="category_id" on_change="onchange_category(category_id)"/>
462 <field name="sequence"/>
466 <field name="amount_type"/>
467 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
468 <field name="total"/>
471 <group col="6" colspan="4">
472 <separator string="Computation Overview" colspan="6"/>
473 <field name="working_days"/>
474 <field name="holiday_days"/>
475 <field name="worked_days"/>
476 <field name="basic_before_leaves"/>
477 <field name="leaves"/>
478 <field name="basic"/>
479 <field name="allounce"/>
480 <field name="deduction"/>
481 <field name="other_pay"/>
482 <field name="grows"/>
484 <field name="total_pay"/>
487 <page string="Other Informations">
488 <group col="2" colspan="1">
489 <separator colspan="2" string="Other Informations"/>
490 <field name="paid" readonly="1"/>
491 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
492 <field name="register_id" groups="base.group_extended"/>
493 <field name="deg_id" groups="base.group_extended"/>
494 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
497 <separator colspan="4" string="Description"/>
498 <field name="note" colspan="4" nolabel="1"/>
501 <group col="10" colspan="4">
502 <field name="state"/>
503 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
504 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
505 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
506 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
507 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
508 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
509 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
514 <record id="view_hr_payslip_filter" model="ir.ui.view">
515 <field name="name">hr.payslip.select</field>
516 <field name="model">hr.payslip</field>
517 <field name="type">search</field>
518 <field name="arch" type="xml">
519 <search string="Search Payslips">
520 <group col="8" colspan="4">
521 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
522 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
523 <separator orientation="vertical"/>
524 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
525 <separator orientation="vertical"/>
527 <field name="employee_id"/>
528 <field name="number"/>
532 <group col="8" colspan="4" expand="0" string="Group By...">
533 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
534 <separator orientation="vertical"/>
535 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
536 <separator orientation="vertical"/>
537 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
538 <separator orientation="vertical"/>
539 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
544 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
545 <field name="name">Employee Payslip</field>
546 <field name="res_model">hr.payslip</field>
547 <field name="view_type">form</field>
548 <field name="view_id" ref="view_hr_payslip_tree"/>
549 <field name="search_view_id" ref="view_hr_payslip_filter"/>
551 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
553 <!-- Payment Heads -->
554 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
555 <field name="name">hr.allounce.deduction.categoty.form</field>
556 <field name="model">hr.allounce.deduction.categoty</field>
557 <field name="type">form</field>
558 <field name="arch" type="xml">
559 <form string="Salary Heads">
560 <group col="6" colspan="6">
561 <field name="name" select="1"/>
562 <field name="code" select="1"/>
563 <field name="type" select="1"/>
564 <group col="2" colspan="4">
565 <separator colspan="4" string="Based on"/>
566 <field name="base" colspan="4" nolabel="1"/>
568 <group col="2" colspan="2">
569 <separator colspan="4" string="Dynamic Computation"/>
570 <field name="condition"/>
571 <field name="sequence"/>
574 <notebook colspan="4">
575 <page string="Description">
576 <field name="note" colspan="4" nolabel="1"/>
578 <page string="Contribution">
579 <field name="contribute_ids" colspan="4" nolabel="1" height="300">
580 <form string="Company Contribution">
581 <group col="6" colspan="6">
582 <field name="name" select="1"/>
583 <field name="code" select="1"/>
585 <group col="2" colspan="2">
586 <separator colspan="2" string="Contributions"/>
587 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
588 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
589 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
591 <group col="2" colspan="2">
592 <separator colspan="2" string="Other Information"/>
593 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
594 <field name="active" select="1"/>
596 <notebook colspan="4">
597 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
598 <field name="line_ids" colspan="4" nolabel="1">
599 <tree string="Function Arguments" editable="bottom">
601 <field name="sequence"/>
602 <field name="from_val"/>
603 <field name="to_val"/>
604 <field name="amount_type"/>
605 <field name="value"/>
609 <page string="Description">
610 <field name="note" colspan="4" nolabel="1"/>
620 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
621 <field name="name">hr.allounce.deduction.categoty.tree</field>
622 <field name="model">hr.allounce.deduction.categoty</field>
623 <field name="type">tree</field>
624 <field name="arch" type="xml">
625 <tree string="Salary Heads">
630 <field name="condition"/>
631 <field name="sequence"/>
636 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
637 <field name="name">hr.allounce.deduction.categoty.select</field>
638 <field name="model">hr.allounce.deduction.categoty</field>
639 <field name="type">search</field>
640 <field name="arch" type="xml">
641 <search string="Salary Heads">
642 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
643 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
644 <separator orientation="vertical"/>
645 <field name="name" select="1"/>
646 <field name="code" select="1"/>
649 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
650 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
651 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
657 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
658 <field name="name">Salary Heads</field>
659 <field name="res_model">hr.allounce.deduction.categoty</field>
660 <field name="view_type">form</field>
661 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
662 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
665 id="menu_hr_allounce_deduction_tree"
666 action="hr_allounce_deduction_tree"
667 parent="payroll_configure"
669 <!-- End Payment Heads -->
671 <!-- Company Contribution -->
672 <record id="hr_company_contribution_form" model="ir.ui.view">
673 <field name="name">company.contribution.form</field>
674 <field name="model">company.contribution</field>
675 <field name="type">form</field>
676 <field name="arch" type="xml">
677 <form string="Company Contribution">
678 <group col="6" colspan="6">
679 <field name="name" select="1"/>
680 <field name="code" select="1"/>
681 <field name="category_id"/>
683 <group col="2" colspan="2">
684 <separator colspan="2" string="Contributions"/>
685 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
686 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
687 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
689 <group col="2" colspan="2">
690 <separator colspan="2" string="Other Information"/>
691 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
692 <field name="active" select="1"/>
694 <notebook colspan="4">
695 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
696 <field name="line_ids" colspan="4" nolabel="1">
697 <tree string="Function Arguments" editable="bottom">
699 <field name="sequence"/>
700 <field name="from_val"/>
701 <field name="to_val"/>
702 <field name="amount_type"/>
703 <field name="value"/>
707 <page string="Description">
708 <field name="note" colspan="4" nolabel="1"/>
714 <record id="hr_company_contribution_tree" model="ir.ui.view">
715 <field name="name">company.contribution.tree</field>
716 <field name="model">company.contribution</field>
717 <field name="type">tree</field>
718 <field name="arch" type="xml">
719 <tree string="Company Contribution">
722 <field name="contribute_per"/>
723 <field name="amount_type"/>
724 <field name="register_id"/>
725 <field name="category_id"/>
730 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
731 <field name="name">company.contribution.select</field>
732 <field name="model">company.contribution</field>
733 <field name="type">search</field>
734 <field name="arch" type="xml">
735 <search string="Search Company Contribution">
736 <group col="8" colspan="4">
737 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
738 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
739 <separator orientation="vertical"/>
742 <field name="contribute_per"/>
743 <field name="register_id"/>
746 <group col="8" colspan="4" expand="0" string="Group By...">
747 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
748 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
753 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
754 <field name="name">Company Contributions</field>
755 <field name="res_model">company.contribution</field>
756 <field name="view_type">form</field>
757 <field name="view_id" ref="hr_company_contribution_tree"/>
758 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
761 id="menu_hr_company_contribution_tree"
762 action="action_hr_company_contribution_tree"
763 parent="payroll_configure"
765 <!-- End Company Contribution -->
767 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
768 <field name="name">hr.payroll.advice.tree</field>
769 <field name="model">hr.payroll.advice</field>
770 <field name="type">tree</field>
771 <field name="arch" type="xml">
772 <tree string="Bank Advice">
773 <field name="number" select="1"/>
774 <field name="name" select="1"/>
775 <field name="date" select="1"/>
776 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
781 <record id="view_hr_bank_advice_form" model="ir.ui.view">
782 <field name="name">hr.payroll.advice.form</field>
783 <field name="model">hr.payroll.advice</field>
784 <field name="type">form</field>
785 <field name="arch" type="xml">
786 <form string="Bank Advice">
787 <group col="6" colspan="4">
788 <field name="name" colspan="4" select="1"/>
789 <field name="number" select="1"/>
790 <field name="register_id"/>
791 <field name="bank_id"/>
793 <notebook colspan="4">
794 <page string="Paymeny Lines">
795 <field name="line_ids" colspan="4" nolabel="1">
796 <tree string="Payment Lines" editable="bottom">
797 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
799 <field name="amount"/>
800 <field name="bysal"/>
805 <page string="Letter Content">
806 <group colspan="4" col="6">
807 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
808 <field name="chaque_nos"/>
809 <field name="date" select="1"/>
811 <separator colspan="4" string="Letter Details"/>
812 <field name="note" colspan="4" nolabel="1"/>
815 <group col="6" colspan="6">
816 <field name="state"/>
817 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
818 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
819 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
824 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
825 <field name="name">Payment Advice</field>
826 <field name="res_model">hr.payroll.advice</field>
827 <field name="view_type">form</field>
828 <field name="view_mode">tree,form</field>
829 <field name="view_id" ref="view_hr_bank_advice_tree"/>
832 action="action_view_hr_bank_advice_tree"
833 id="hr_menu_payment_advice"
834 parent="menu_hr_root_payroll"
837 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
838 <field name="name">hr.payroll.register.tree</field>
839 <field name="model">hr.payroll.register</field>
840 <field name="type">tree</field>
841 <field name="arch" type="xml">
842 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
843 <field name="number"/>
846 <field name="state"/>
850 <record id="view_hr_payroll_register_form" model="ir.ui.view">
851 <field name="name">hr.payroll.register.form</field>
852 <field name="model">hr.payroll.register</field>
853 <field name="type">form</field>
854 <field name="arch" type="xml">
855 <form string="Payroll Register">
856 <group col="6" colspan="4">
857 <field name="name" colspan="4" select="1"/>
858 <field name="number" select="1"/>
859 <field name="bank_id"/>
860 <field name="date" select="1"/>
862 <notebook colspan="4">
863 <page string="Payslips">
864 <field name="line_ids" colspan="4" nolabel="1">
865 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
866 <field name="number"/>
867 <field name="employee_id"/>
870 <field name="basic"/>
871 <field name="allounce"/>
872 <field name="grows"/>
873 <field name="deduction"/>
875 <field name="state"/>
878 <group col="2" colspan="2">
879 <separator colspan="4" string="Allowance / Deduction"/>
880 <field name="allounce"/>
881 <field name="deduction"/>
883 <group col="2" colspan="2">
884 <separator colspan="4" string="Salary Information"/>
885 <field name="grows"/>
890 <group col="8" colspan="4">
891 <field name="state"/>
892 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
893 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
894 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
895 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
896 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
897 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
902 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
903 <field name="name">Payroll Register</field>
904 <field name="res_model">hr.payroll.register</field>
905 <field name="view_type">form</field>
906 <field name="view_mode">tree,form</field>
909 action="action_view_hr_payroll_register_form"
910 id="hr_menu_payroll_register"
911 parent="menu_hr_root_payroll"
915 Contribution Register
917 <record id="hr_contibution_register_tree" model="ir.ui.view">
918 <field name="name">hr.contibution.register.tree</field>
919 <field name="model">hr.contibution.register</field>
920 <field name="type">tree</field>
921 <field name="arch" type="xml">
922 <tree string="Contribution Registers">
923 <field name="name" select="1"/>
924 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
925 <field name="monthly_total_by_emp"/>
926 <field name="monthly_total_by_comp"/>
930 <record id="hr_contibution_register_form" model="ir.ui.view">
931 <field name="name">hr.contibution.register.form</field>
932 <field name="model">hr.contibution.register</field>
933 <field name="type">form</field>
934 <field name="arch" type="xml">
935 <form string="Contribution">
936 <field name="name" select="1"/>
937 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
938 <notebook colspan="4">
939 <page string="Contribution Lines">
940 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
941 <tree string="Register Lines" editable="top">
944 <field name="employee_id"/>
945 <field name="emp_deduction"/>
946 <field name="comp_deduction"/>
947 <field name="total"/>
951 <page string="Description">
952 <separator colspan="4" string="Description"/>
953 <field name="note" colspan="4" nolabel="1"/>
956 <group col="2" colspan="2">
957 <separator colspan="2" string="Month"/>
958 <field name="monthly_total_by_emp"/>
959 <field name="monthly_total_by_comp"/>
964 <record id="action_contibution_register_form" model="ir.actions.act_window">
965 <field name="name">Contibution Register</field>
966 <field name="res_model">hr.contibution.register</field>
967 <field name="view_type">form</field>
968 <field name="view_id" ref="hr_contibution_register_tree"/>
971 id="menu_action_hr_contibution_register_form"
972 action="action_contibution_register_form"
973 parent="payroll_configure"
975 <record id="hr_contibution_register_line_form" model="ir.ui.view">
976 <field name="name">hr.contibution.register.line.form</field>
977 <field name="model">hr.contibution.register.line</field>
978 <field name="type">form</field>
979 <field name="arch" type="xml">
980 <form string="Contribution">
983 <field name="employee_id"/>
984 <field name="emp_deduction"/>
985 <field name="comp_deduction"/>
986 <field name="total"/>