1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="menu_hr_root_payroll" parent="hr.menu_hr_root" name="Payroll" groups="base.group_system,group_hr_payroll" sequence="9"/>
6 <menuitem id="payroll_configure" parent="hr.menu_hr_configuration" name="Payroll" groups="base.group_system"/>
7 <menuitem id="menu_hr_payroll_reporting" parent="hr.menu_hr_reporting" name="Payroll" groups="base.group_hr_manager"/>
9 <!-- Passport Views -->
10 <record id="hr_passport_form" model="ir.ui.view">
11 <field name="name">hr.passport.form</field>
12 <field name="model">hr.passport</field>
13 <field name="type">form</field>
14 <field name="arch" type="xml">
15 <form string="Passport">
16 <group col="6" colspan="4">
17 <field name="name" select="1" colspan="4"/>
18 <field name="employee_id" />
20 <group col="2" colspan="2">
21 <separator string="Country & Address" colspan="4"/>
22 <field name="country_id" select="1"/>
23 <field name="address_id" select="1"/>
25 <group col="2" colspan="2">
26 <separator string="Valid From" colspan="2"/>
27 <field name="date_issue" select="1"/>
28 <field name="date_expire" select="1"/>
30 <notebook colspan="4">
31 <page string="Description">
32 <separator string="Description" colspan="2"/>
33 <field name="note" colspan="4" nolabel="1"/>
35 <page string="Contracts" groups="base.group_extended">
36 <field name="contracts_ids" colspan="4" nolabel="1"/>
42 <record id="hr_passport_tree" model="ir.ui.view">
43 <field name="name">hr.passport.tree</field>
44 <field name="model">hr.passport</field>
45 <field name="type">tree</field>
46 <field name="arch" type="xml">
47 <tree string="Passport">
49 <field name="employee_id" />
50 <field name="address_id"/>
51 <field name="country_id" />
52 <field name="date_expire"/>
53 <field name="date_issue" />
58 <record id="view_hr_passport_filter" model="ir.ui.view">
59 <field name="name">hr.passport.select</field>
60 <field name="model">hr.passport</field>
61 <field name="type">search</field>
62 <field name="arch" type="xml">
63 <search string="Search Passport">
64 <group col="8" colspan="4">
66 <field name="employee_id"/>
67 <field name="country_id"/>
68 <field name="address_id"/>
71 <group col="8" colspan="4" expand="0" string="Group By...">
72 <filter string="Employees" icon="terp-partner" name="employee_id" context="{'group_by':'employee_id'}"/>
73 <filter string="Country" name="country_id" icon="terp-go-home" context="{'group_by':'country_id'}"/>
74 <filter string="Expire" name="date_expire" icon="terp-go-month" context="{'group_by':'date_expire'}"/>
75 <filter string="Issue" name="date_issue" icon="terp-go-month" context="{'group_by':'date_issue'}"/>
80 <record id="action_hr_passport_tree" model="ir.actions.act_window">
81 <field name="name">All Passports</field>
82 <field name="res_model">hr.passport</field>
83 <field name="view_type">form</field>
84 <field name="view_id" ref="hr_passport_tree"/>
85 <field name="search_view_id" ref="view_hr_passport_filter"/>
87 <!-- End Passport Views -->
89 <!-- Employee View -->
91 <record id="view_employee_bank_form" model="ir.ui.view">
92 <field name="name">res.partner.bank.form</field>
93 <field name="model">res.partner.bank</field>
94 <field name="type">form</field>
95 <field name="inherit_id" ref="base.view_partner_bank_form"/>
96 <field name="arch" type="xml">
97 <field name="partner_id" position="replace">
98 <field name="partner_id" invisible="context.get('display_partner', False)"/>
103 <record id="hr_contract.hr_hr_employee_view_form2" model="ir.ui.view">
104 <field name="name">hr.hr.employee.view.form2</field>
105 <field name="model">hr.employee</field>
106 <field name="inherit_id" ref="hr.view_employee_form"/>
107 <field name="arch" type="xml">
109 <xpath expr="/form/notebook/page[@string='Personal Information']" position="after">
110 <page string="Miscellaneous">
111 <group colspan="2" col="2">
112 <separator string="Personal Info" colspan="2"/>
113 <field name="bank_account_id" context="{'display_partner':True, 'partner_id':partner_id}"/>
114 <field name="place_of_birth"/>
115 <field name="children"/>
117 <group colspan="2" col="2">
118 <separator string="Job Info" colspan="2"/>
119 <field name="manager" select="1"/>
120 <field name="vehicle" select="1"/>
121 <field name="vehicle_distance" select="1"/>
123 <group col="2" colspan="2" groups="base.group_extended">
124 <separator colspan="2" string="ESI Information"/>
125 <field name="esi_account" string="Account"/>
126 <field name="hospital_id" string="Hospital"/>
127 <field name="medic_exam" select="1" string="Medical Examination"/>
128 <field name="esp_account" select="1"/>
130 <group col="2" colspan="2" groups="base.group_extended">
131 <separator colspan="2" string="Providend Fund"/>
132 <field name="pf_account" string="Account"/>
133 <field name="pg_joining" string="Join Date"/>
136 <page string="Contracts" groups="base.group_extended">
137 <field colspan="4" mode="form,tree" name="contract_ids" nolabel="1">
138 <tree string="Contracts">
140 <field name="job_id"/>
141 <field name="date_start"/>
142 <field name="date_end"/>
143 <field name="working_hours"/>
144 <field name="wage_type_id"/>
147 <form string="Contracts">
148 <group colspan="4" col="6">
149 <field name="name" select="1"/>
150 <field name="job_id"/>
153 <field name="wage_type_id" widget="selection"/>
154 <field name="type_id" widget="selection"/>
156 <notebook colspan="4">
157 <page string="Contract Details">
158 <group col="2" colspan="2">
159 <separator colspan="2" string="Duration"/>
160 <field name="date_start" select="1"/>
161 <field name="date_end" select="1"/>
162 <field name="working_hours"/>
164 <group col="2" colspan="2">
165 <separator colspan="2" string="Advantages"/>
166 <field name="struct_id" select="1"/>
167 <field name="advantages_net"/>
168 <field name="advantages_gross"/>
169 <field name="advantages" nolabel="1" colspan="2"/>
173 <page string="Work Permit">
174 <group col="2" colspan="2">
175 <separator colspan="2" string="Passport"/>
176 <field name="passport_id" domain="[('employee_id','=',parent.id)]"/>
178 <group col="2" colspan="2">
179 <separator colspan="2" string="Valid for"/>
180 <field name="visa_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
181 <field name="permit_no" attrs="{'required': [('passport_id','!=',False), ]}"/>
182 <field name="visa_expire" attrs="{'required': [('passport_id','!=',False), ]}"/>
185 <separator colspan="4" string="Notes"/>
186 <field colspan="4" name="notes" nolabel="1"/>
192 <xpath expr="/form/notebook/page[@string='Notes']" position="before">
193 <page string="Salary Structure" groups="base.group_extended">
194 <field name="line_ids" nolabel="1" colspan="4" string="Salary Structure">
195 <tree string="Salary Structure" editable="bottom">
196 <field name="category_id" on_change="onchange_category(category_id)"/>
197 <field name="sequence"/>
201 <field name="amount_type"/>
202 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
206 <page string="Salary Slips" groups="base.group_extended">
207 <field name="slip_ids" colspan="4" nolabel="1" readonly="True">
208 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
209 <field name="number"/>
212 <field name="register_id"/>
213 <field name="basic"/>
214 <field name="allounce"/>
215 <field name="grows"/>
216 <field name="deduction"/>
218 <field name="total_pay" sum="Total Salary Paid"/>
219 <field name="state"/>
220 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
229 <record id="view_employee_passport_form" model="ir.ui.view">
230 <field name="name">hr.employee.passport.form</field>
231 <field name="model">hr.employee</field>
232 <field name="type">form</field>
233 <field name="inherit_id" ref="hr.view_employee_form"/>
234 <field name="arch" type="xml">
235 <field name="identification_id" position="after">
236 <field name="passport_id"/>
240 <!-- End Employee View -->
242 <!-- Contract View -->
243 <record id="hr_contract.hr_contract_view_form" model="ir.ui.view">
244 <field name="name">hr.contract.view.form</field>
245 <field name="model">hr.contract</field>
246 <field name="type">form</field>
247 <field name="arch" type="xml">
248 <form string="Contract">
249 <group colspan="4" col="6">
250 <field name="name" select="1"/>
251 <field name="employee_id" select="1"/>
252 <field name="job_id"/>
254 <field name="wage_type_id" widget="selection"/>
255 <field name="type_id" widget="selection"/>
257 <notebook colspan="4">
258 <page string="Main Data">
259 <group col="2" colspan="2">
260 <separator colspan="2" string="Duration"/>
261 <field name="date_start" select="1"/>
262 <field name="date_end" select="1"/>
263 <field name="working_hours"/>
264 <field name="working_days_per_week" select="1"/>
265 <separator colspan="2" string="Trial Period"/>
266 <field name="trial_date_start" />
267 <field name="trial_date_end" />
269 <group col="2" colspan="2">
270 <separator colspan="2" string="Advantages"/>
271 <field name="struct_id" select="1"/>
272 <field name="advantages_net"/>
273 <field name="advantages_gross"/>
274 <field name="advantages" nolabel="1" colspan="2"/>
277 <page string="Work Permit">
278 <group col="2" colspan="2">
279 <separator colspan="2" string="Passport"/>
280 <field name="passport_id"/>
282 <group col="2" colspan="2">
283 <separator colspan="2" string="Valid for"/>
284 <field name="visa_no"/>
285 <field name="permit_no"/>
286 <field name="visa_expire"/>
290 <separator colspan="4" string="Notes"/>
291 <field colspan="4" name="notes" nolabel="1"/>
295 <menuitem action="hr_contract.action_hr_contract" id="hr_menu_contract" parent="payroll_configure" name="Contracts" sequence="4"/>
296 <!-- End Contract View-->
298 <!-- Salary structure -->
299 <record id="view_hr_employee_grade_tree" model="ir.ui.view">
300 <field name="name">hr.payroll.structure.tree</field>
301 <field name="model">hr.payroll.structure</field>
302 <field name="type">tree</field>
303 <field name="arch" type="xml">
304 <tree string="Employee Function">
307 <field name="line_ids"/>
308 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
313 <record id="view_hr_employee_grade_form" model="ir.ui.view">
314 <field name="name">hr.payroll.structure.form</field>
315 <field name="model">hr.payroll.structure</field>
316 <field name="type">form</field>
317 <field name="arch" type="xml">
318 <form string="Employee Function">
319 <group col="6" colspan="4">
320 <field name="name" colspan="4" select="1"/>
321 <field name="code" select="1"/>
322 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
324 <notebook colspan="4">
325 <page string="Salary Structure">
326 <field name="line_ids" nolabel="1" colspan="4"/>
333 <record id="action_view_hr_employee_grade_form" model="ir.actions.act_window">
334 <field name="name">Salary Structure</field>
335 <field name="res_model">hr.payroll.structure</field>
336 <field name="view_type">form</field>
337 <field name="view_id" ref="view_hr_employee_grade_tree"/>
340 id="menu_hr_employee_function"
341 action="action_view_hr_employee_grade_form"
342 parent="payroll_configure"
344 <!-- End Salary structure -->
346 <!-- Holiday Status -->
347 <record model="ir.ui.view" id="view_holiday_status_form1">
348 <field name="name">hr.holidays.status.inherit</field>
349 <field name="model">hr.holidays.status</field>
350 <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
351 <field name="type">form</field>
352 <field name="arch" type="xml">
353 <field name="color_name" position="after">
354 <group col="2" colspan="2">
355 <separator colspan="4" string="Payroll Accounting"/>
356 <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/>
359 <group col="2" colspan="2">
360 <separator colspan="4" string="Payroll Configurtion"/>
362 <field name="head_id"/>
367 <!-- End Holiday Status -->
369 <!-- Payslip Line -->
370 <record id="view_hr_payslip_line_tree" model="ir.ui.view">
371 <field name="name">hr.payslip.line.tree</field>
372 <field name="model">hr.payslip.line</field>
373 <field name="type">tree</field>
374 <field name="arch" type="xml">
375 <tree string="Salary Structure" editable="bottom">
376 <field name="category_id" on_change="onchange_category(category_id)"/>
377 <field name="sequence"/>
381 <field name="amount_type"/>
382 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
386 <record id="view_hr_payslip_line_form" model="ir.ui.view">
387 <field name="name">hr.payslip.line.form</field>
388 <field name="model">hr.payslip.line</field>
389 <field name="type">form</field>
390 <field name="arch" type="xml">
391 <form string="Payslip Line">
392 <group col="6" colspan="4">
393 <field name="name" colspan="4" select="1"/>
394 <field name="code" select="1"/>
395 <field name="slip_id" select="1"/>
396 <field name="employee_id"/>
397 <field name="function_id"/>
399 <group col="2" colspan="2">
400 <separator colspan="4" string="Calculations"/>
401 <field name="category_id" on_change="onchange_category(category_id)"/>
403 <field name="amount_type"/>
404 <field name="amount" on_change="onchange_amount(amount, amount_type)" attrs="{'readonly':[('amount_type','=','func')]}"/>
405 <field name="sequence"/>
407 <group col="2" colspan="2">
408 <!-- <separator colspan="4" string="Accounting Informations"/>-->
409 <!-- <field name="account_id"/>-->
410 <!-- <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>-->
411 <separator colspan="4" string="Company contribution"/>
412 <field name="company_contrib"/>
414 <notebook colspan="4">
415 <page string="Function">
416 <field name="line_ids" colspan="4" nolabel="1" attrs="{'readonly':[('amount_type','!=','func')]}">
417 <tree string="Function Arguments" editable="bottom">
419 <field name="sequence"/>
420 <field name="from_val"/>
421 <field name="to_val"/>
422 <field name="amount_type"/>
423 <field name="value"/>
427 <page string="Description">
428 <separator colspan="4" string="Description"/>
429 <field name="note" colspan="4" nolabel="1"/>
436 <record id="view_hr_payslip_tree" model="ir.ui.view">
437 <field name="name">hr.payslip.tree</field>
438 <field name="model">hr.payslip</field>
439 <field name="type">tree</field>
440 <field name="arch" type="xml">
441 <tree colors="blue:state in ('confirm','hr_check','accont_check');black:state in ('new');gray:state in('cancel')" string="Payslip">
442 <field name="number"/>
443 <field name="employee_id"/>
444 <field name="register_id" invisible="1"/>
447 <field name="grows"/>
449 <field name="state"/>
450 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
455 <record id="view_hr_payslip_form" model="ir.ui.view">
456 <field name="name">hr.payslip.form</field>
457 <field name="model">hr.payslip</field>
458 <field name="type">form</field>
459 <field name="arch" type="xml">
460 <form string="Payslip">
461 <group col="6" colspan="4">
462 <field name="employee_id"/>
464 <field name="number" select="1"/>
467 <notebook colspan="4">
468 <page string="Salary Computation">
469 <field name="line_ids" colspan="4" nolabel="1">
470 <tree string="Salary Structure" editable="bottom">
471 <field name="category_id" on_change="onchange_category(category_id)"/>
472 <field name="sequence"/>
476 <field name="amount_type"/>
477 <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
478 <field name="total"/>
481 <group col="6" colspan="4">
482 <separator string="Computation Overview" colspan="6"/>
483 <field name="working_days"/>
484 <field name="holiday_days"/>
485 <field name="worked_days"/>
486 <field name="basic_before_leaves"/>
487 <field name="leaves"/>
488 <field name="basic"/>
489 <field name="allounce"/>
490 <field name="deduction"/>
491 <field name="other_pay"/>
492 <field name="grows"/>
494 <field name="total_pay"/>
497 <page string="Other Informations">
498 <group col="2" colspan="1">
499 <separator colspan="2" string="Other Informations"/>
500 <field name="paid" readonly="1"/>
501 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
502 <field name="register_id" groups="base.group_extended"/>
503 <field name="deg_id" groups="base.group_extended"/>
504 <field name="contract_id" groups="base.group_extended" domain="[('employee_id','=',employee_id)]"/>
507 <separator colspan="4" string="Description"/>
508 <field name="note" colspan="4" nolabel="1"/>
511 <group col="10" colspan="4">
512 <field name="state"/>
513 <button string="Cancel" icon="terp-dialog-close" name="cancel_sheet" states="draft,hr_check,confirm"/>
514 <button string="Compute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" states="new"/>
515 <button string="Recompute Sheet" icon="terp-stock_format-scientific" name="compute_sheet" type="object" states="draft"/>
516 <button string="Verify Sheet" icon="terp-camera_test" name="verify_sheet" states="draft"/>
517 <button string="Approve Sheet" icon="terp-camera_test" name="final_verify_sheet" states="hr_check"/>
518 <button string="Pay Salary" icon="terp-dolar_ok!" name="process_sheet" states="confirm"/>
519 <button string="Set to Draft" icon="terp-stock_effects-object-colorize" name="set_to_draft" states="cancel"/>
524 <record id="view_hr_payslip_filter" model="ir.ui.view">
525 <field name="name">hr.payslip.select</field>
526 <field name="model">hr.payslip</field>
527 <field name="type">search</field>
528 <field name="arch" type="xml">
529 <search string="Search Payslips">
530 <group col="8" colspan="4">
531 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Slip"/>
532 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Slip"/>
533 <separator orientation="vertical"/>
534 <filter icon="terp-dolar_ok!" string="Paid" domain="[('state','=','done'),('paid','=',True)]" help="Paid Slip"/>
535 <separator orientation="vertical"/>
537 <field name="employee_id"/>
538 <field name="number"/>
542 <group col="8" colspan="4" expand="0" string="Group By...">
543 <filter string="Employees" icon="terp-personal" name="employee_id" context="{'group_by':'employee_id'}"/>
544 <separator orientation="vertical"/>
545 <filter string="Register" icon="terp-folder-yellow" name="register_id" context="{'group_by':'register_id'}"/>
546 <separator orientation="vertical"/>
547 <filter string="Companies" name="company_id" icon="terp-go-home" context="{'group_by':'company_id'}"/>
548 <separator orientation="vertical"/>
549 <filter string="States" name="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
554 <record id="action_view_hr_payslip_form" model="ir.actions.act_window">
555 <field name="name">Employee Payslip</field>
556 <field name="res_model">hr.payslip</field>
557 <field name="view_type">form</field>
558 <field name="view_id" ref="view_hr_payslip_tree"/>
559 <field name="search_view_id" ref="view_hr_payslip_filter"/>
561 <menuitem action="action_view_hr_payslip_form" id="menu_department_tree" parent="menu_hr_root_payroll"/>
563 <!-- Payment Heads -->
564 <record id="hr_allounce_deduction_categoty_form" model="ir.ui.view">
565 <field name="name">hr.allounce.deduction.categoty.form</field>
566 <field name="model">hr.allounce.deduction.categoty</field>
567 <field name="type">form</field>
568 <field name="arch" type="xml">
569 <form string="Salary Heads">
570 <group col="6" colspan="6">
571 <field name="name" select="1"/>
572 <field name="code" select="1"/>
573 <field name="type" select="1"/>
574 <group col="2" colspan="4">
575 <separator colspan="4" string="Based on"/>
576 <field name="base" colspan="4" nolabel="1"/>
578 <group col="2" colspan="2">
579 <separator colspan="4" string="Dynamic Computation"/>
580 <field name="condition"/>
581 <field name="sequence"/>
584 <notebook colspan="4">
585 <page string="Description">
586 <field name="note" colspan="4" nolabel="1"/>
588 <page string="Contribution">
589 <field name="contribute_ids" colspan="4" nolabel="1" height="300"/>
595 <record id="hr_allounce_deduction_categoty_tree" model="ir.ui.view">
596 <field name="name">hr.allounce.deduction.categoty.tree</field>
597 <field name="model">hr.allounce.deduction.categoty</field>
598 <field name="type">tree</field>
599 <field name="arch" type="xml">
600 <tree string="Salary Heads">
605 <field name="condition"/>
606 <field name="sequence"/>
611 <record id="view_allounce_deduction_categoty_filter" model="ir.ui.view">
612 <field name="name">hr.allounce.deduction.categoty.select</field>
613 <field name="model">hr.allounce.deduction.categoty</field>
614 <field name="type">search</field>
615 <field name="arch" type="xml">
616 <search string="Salary Heads">
617 <filter icon="terp-document-new" string="Allowance" domain="[('type','=','allowance')]"/>
618 <filter icon="terp-check" string="Deduction" domain="[('type','=','deduction')]"/>
619 <separator orientation="vertical"/>
620 <field name="name" select="1"/>
621 <field name="code" select="1"/>
624 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
625 <filter string="Based" icon="terp-go-month" domain="[]" context="{'group_by':'base'}"/>
626 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
632 <record id="hr_allounce_deduction_tree" model="ir.actions.act_window">
633 <field name="name">Salary Heads</field>
634 <field name="res_model">hr.allounce.deduction.categoty</field>
635 <field name="view_type">form</field>
636 <field name="view_id" ref="hr_allounce_deduction_categoty_tree"/>
637 <field name="search_view_id" ref="view_allounce_deduction_categoty_filter"/>
640 id="menu_hr_allounce_deduction_tree"
641 action="hr_allounce_deduction_tree"
642 parent="payroll_configure"
644 <!-- End Payment Heads -->
646 <!-- Company Contribution -->
647 <record id="hr_company_contribution_form" model="ir.ui.view">
648 <field name="name">company.contribution.form</field>
649 <field name="model">company.contribution</field>
650 <field name="type">form</field>
651 <field name="arch" type="xml">
652 <form string="Company Contribution">
653 <group col="6" colspan="6">
654 <field name="name" select="1"/>
655 <field name="code" select="1"/>
656 <field name="category_id"/>
658 <group col="2" colspan="2">
659 <separator colspan="2" string="Contributions"/>
660 <field name="amount_type" attrs="{'required': [('contribute','=',True)]}"/>
661 <field name="contribute_per" attrs="{'required': [('contribute','=',True)], 'readonly':[(('amount_type','=','func'))]}"/>
662 <field name="register_id" attrs="{'required': [('contribute','=',True)]}"/>
664 <group col="2" colspan="2">
665 <separator colspan="2" string="Other Information"/>
666 <field name="company_id" groups="base.group_multi_company" widget="selection" select="1"/>
667 <field name="active" select="1"/>
669 <notebook colspan="4">
670 <page string="Function" attrs="{'readonly': [('amount_type','!=','func')]}">
671 <field name="line_ids" colspan="4" nolabel="1">
672 <tree string="Function Arguments" editable="bottom">
674 <field name="sequence"/>
675 <field name="from_val"/>
676 <field name="to_val"/>
677 <field name="amount_type"/>
678 <field name="value"/>
682 <page string="Description">
683 <field name="note" colspan="4" nolabel="1"/>
689 <record id="hr_company_contribution_tree" model="ir.ui.view">
690 <field name="name">company.contribution.tree</field>
691 <field name="model">company.contribution</field>
692 <field name="type">tree</field>
693 <field name="arch" type="xml">
694 <tree string="Company Contribution">
697 <field name="contribute_per"/>
698 <field name="amount_type"/>
699 <field name="register_id"/>
700 <field name="category_id"/>
705 <record id="view_hr_company_contribution_filter" model="ir.ui.view">
706 <field name="name">company.contribution.select</field>
707 <field name="model">company.contribution</field>
708 <field name="type">search</field>
709 <field name="arch" type="xml">
710 <search string="Search Company Contribution">
711 <group col="8" colspan="4">
712 <filter icon="terp-document-new" string="Fixed Amount" domain="[('amount_type','=','fix')]" help="Draft Slip"/>
713 <filter icon="terp-camera_test" string="Function Calculation" domain="[('amount_type','=','func')]" help="Posted Slip"/>
714 <separator orientation="vertical"/>
717 <field name="contribute_per"/>
718 <field name="register_id"/>
721 <group col="8" colspan="4" expand="0" string="Group By...">
722 <filter string="Type" icon="terp-partner" name="amount_type" context="{'group_by':'amount_type'}"/>
723 <filter string="Category" name="category_id" icon="terp-go-month" context="{'group_by':'category_id'}"/>
728 <record id="action_hr_company_contribution_tree" model="ir.actions.act_window">
729 <field name="name">Company Contributions</field>
730 <field name="res_model">company.contribution</field>
731 <field name="view_type">form</field>
732 <field name="view_id" ref="hr_company_contribution_tree"/>
733 <field name="search_view_id" ref="view_hr_company_contribution_filter"/>
736 id="menu_hr_company_contribution_tree"
737 action="action_hr_company_contribution_tree"
738 parent="payroll_configure"
740 <!-- End Company Contribution -->
742 <record id="view_hr_bank_advice_tree" model="ir.ui.view">
743 <field name="name">hr.payroll.advice.tree</field>
744 <field name="model">hr.payroll.advice</field>
745 <field name="type">tree</field>
746 <field name="arch" type="xml">
747 <tree string="Bank Advice">
748 <field name="number" select="1"/>
749 <field name="name" select="1"/>
750 <field name="date" select="1"/>
751 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
756 <record id="view_hr_bank_advice_form" model="ir.ui.view">
757 <field name="name">hr.payroll.advice.form</field>
758 <field name="model">hr.payroll.advice</field>
759 <field name="type">form</field>
760 <field name="arch" type="xml">
761 <form string="Bank Advice">
762 <group col="6" colspan="4">
763 <field name="name" colspan="4" select="1"/>
764 <field name="number" select="1"/>
765 <field name="register_id"/>
766 <field name="bank_id"/>
768 <notebook colspan="4">
769 <page string="Paymeny Lines">
770 <field name="line_ids" colspan="4" nolabel="1">
771 <tree string="Payment Lines" editable="bottom">
772 <field name="employee_id" on_change="onchange_employee_id(parent.date, employee_id)"/>
774 <field name="amount"/>
775 <field name="bysal"/>
780 <page string="Letter Content">
781 <group colspan="4" col="6">
782 <field name="company_id" on_change="onchange_company_id(company_id)" groups="base.group_multi_company" widget="selection"/>
783 <field name="chaque_nos"/>
784 <field name="date" select="1"/>
786 <separator colspan="4" string="Letter Details"/>
787 <field name="note" colspan="4" nolabel="1"/>
790 <group col="6" colspan="6">
791 <field name="state"/>
792 <button name="confirm_sheet" icon="gtk-apply" string="Confirm Sheet" states="draft" type="object"/>
793 <button name="set_to_draft" string="Set to Draft" icon="gtk-convert" states="cancel,confirm" type="object"/>
794 <button name="cancel_sheet" string="Cancel Sheet" states="draft" icon="gtk-cancel" type="object"/>
799 <record id="action_view_hr_bank_advice_tree" model="ir.actions.act_window">
800 <field name="name">Payment Advice</field>
801 <field name="res_model">hr.payroll.advice</field>
802 <field name="view_type">form</field>
803 <field name="view_mode">tree,form</field>
804 <field name="view_id" ref="view_hr_bank_advice_tree"/>
807 action="action_view_hr_bank_advice_tree"
808 id="hr_menu_payment_advice"
809 parent="menu_hr_root_payroll"
812 <record id="view_hr_payroll_register_tree" model="ir.ui.view">
813 <field name="name">hr.payroll.register.tree</field>
814 <field name="model">hr.payroll.register</field>
815 <field name="type">tree</field>
816 <field name="arch" type="xml">
817 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payroll Register">
818 <field name="number"/>
821 <field name="state"/>
825 <record id="view_hr_payroll_register_form" model="ir.ui.view">
826 <field name="name">hr.payroll.register.form</field>
827 <field name="model">hr.payroll.register</field>
828 <field name="type">form</field>
829 <field name="arch" type="xml">
830 <form string="Payroll Register">
831 <group col="6" colspan="4">
832 <field name="name" colspan="4" select="1"/>
833 <field name="number" select="1"/>
834 <field name="bank_id"/>
835 <field name="date" select="1"/>
837 <notebook colspan="4">
838 <page string="Payslips">
839 <field name="line_ids" colspan="4" nolabel="1">
840 <tree colors="blue:state in ('draft');black:state in ('confirm','new','hr_check','accont_check');gray:state in('done','cancel')" string="Payslip">
841 <field name="number"/>
842 <field name="employee_id"/>
845 <field name="basic"/>
846 <field name="allounce"/>
847 <field name="grows"/>
848 <field name="deduction"/>
850 <field name="state"/>
853 <group col="2" colspan="2">
854 <separator colspan="4" string="Allowance / Deduction"/>
855 <field name="allounce"/>
856 <field name="deduction"/>
858 <group col="2" colspan="2">
859 <separator colspan="4" string="Salary Information"/>
860 <field name="grows"/>
865 <group col="8" colspan="4">
866 <field name="state"/>
867 <button string="Compute" name="compute_sheet" states="new" icon="terp-document-new" type="object"/>
868 <button string="Verify Sheet" icon="gtk-ok" name="verify_sheet" states="draft" type="object"/>
869 <button string="Complete HR Checking" icon="gtk-apply" name="final_verify_sheet" type="object" states="hr_check"/>
870 <button string="Pay Salary" icon="gtk-apply" name="process_sheet" states="confirm" type="object" />
871 <button string="Cancel" name="cancel_sheet" icon="gtk-cancel" states="draft,hr_check,accont_check,confirm" type="object"/>
872 <button string="Set to Draft" name="set_to_draft" states="cancel" type="object" icon="gtk-convert" />
877 <record id="action_view_hr_payroll_register_form" model="ir.actions.act_window">
878 <field name="name">Payroll Register</field>
879 <field name="res_model">hr.payroll.register</field>
880 <field name="view_type">form</field>
881 <field name="view_mode">tree,form</field>
884 action="action_view_hr_payroll_register_form"
885 id="hr_menu_payroll_register"
886 parent="menu_hr_root_payroll"
890 Contribution Register
892 <record id="hr_contibution_register_tree" model="ir.ui.view">
893 <field name="name">hr.contibution.register.tree</field>
894 <field name="model">hr.contibution.register</field>
895 <field name="type">tree</field>
896 <field name="arch" type="xml">
897 <tree string="Contribution Registers">
898 <field name="name" select="1"/>
899 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
900 <field name="monthly_total_by_emp"/>
901 <field name="monthly_total_by_comp"/>
905 <record id="hr_contibution_register_form" model="ir.ui.view">
906 <field name="name">hr.contibution.register.form</field>
907 <field name="model">hr.contibution.register</field>
908 <field name="type">form</field>
909 <field name="arch" type="xml">
910 <form string="Contribution">
911 <field name="name" select="1"/>
912 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
913 <notebook colspan="4">
914 <page string="Contribution Lines">
915 <field colspan="4" name="register_line_ids" nolabel="1" select="1">
916 <tree string="Register Lines" editable="top">
919 <field name="employee_id"/>
920 <field name="emp_deduction"/>
921 <field name="comp_deduction"/>
922 <field name="total"/>
926 <page string="Description">
927 <separator colspan="4" string="Description"/>
928 <field name="note" colspan="4" nolabel="1"/>
931 <group col="2" colspan="2">
932 <separator colspan="2" string="Month"/>
933 <field name="monthly_total_by_emp"/>
934 <field name="monthly_total_by_comp"/>
939 <record id="action_contibution_register_form" model="ir.actions.act_window">
940 <field name="name">Contibution Register</field>
941 <field name="res_model">hr.contibution.register</field>
942 <field name="view_type">form</field>
943 <field name="view_id" ref="hr_contibution_register_tree"/>
946 id="menu_action_hr_contibution_register_form"
947 action="action_contibution_register_form"
948 parent="payroll_configure"
950 <record id="hr_contibution_register_line_form" model="ir.ui.view">
951 <field name="name">hr.contibution.register.line.form</field>
952 <field name="model">hr.contibution.register.line</field>
953 <field name="type">form</field>
954 <field name="arch" type="xml">
955 <form string="Contribution">
958 <field name="employee_id"/>
959 <field name="emp_deduction"/>
960 <field name="comp_deduction"/>
961 <field name="total"/>