forked from OCA/hr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhr_payslip_amendment_view.xml
61 lines (57 loc) · 2.72 KB
/
hr_payslip_amendment_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Pay Slip Amendment -->
<record id="view_payslip_amendment_tree" model="ir.ui.view">
<field name="name">hr.payslip.amendment.tree</field>
<field name="model">hr.payslip.amendment</field>
<field name="arch" type="xml">
<tree string="Pay Slip Amendments">
<field name="name"/>
<field name="employee_id"/>
<field name="input_id"/>
<field name="amount"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="view_payslip_amendment_form" model="ir.ui.view">
<field name="name">hr.payslip.amendment.form</field>
<field name="model">hr.payslip.amendment</field>
<field name="arch" type="xml">
<form string="Pay Slip Amendment" version="7.0">
<header>
<button name="validate" type="workflow" states="draft" class="oe_highlight" string="Confirm"/>
<button name="cancel" type="workflow" states="draft,validate" class="oe_highlight" string="Cancel"/>
<button name="reset" type="workflow" states="cancel" class="oe_highlight" string="Set to Draft"/>
<field name="state" widget="statusbar"/>
</header>
<group>
<group>
<field name="employee_id" on_change="onchange_employee(employee_id)"/>
<field name="input_id" widget="selection"/>
<field name="amount"/>
</group>
<group>
<field name="name"/>
</group>
<newline/>
<group string="Note">
<field name="note" nolabel="1" placeholder="Explain the reason for the amendment..."/>
</group>
</group>
</form>
</field>
</record>
<record id="action_payslip_amendment" model="ir.actions.act_window">
<field name="name">Pay Slip Amendments</field>
<field name="res_model">hr.payslip.amendment</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem action="action_payslip_amendment"
id="menu_payslip_amendment"
parent="hr_payroll.menu_hr_root_payroll"
sequence="20"/>
</data>
</openerp>