-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhr_view.xml
81 lines (75 loc) · 3.36 KB
/
hr_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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8" ?>
<!--
##############################################################################
#
# Copyright (C) 2011 Michael Telahun Makonnen <[email protected]>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
-->
<openerp>
<data>
<record id="hr_employee_view_form" model="ir.ui.view">
<field name="name">hr.employee.view.form.inherit.education</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//group[@string='Birth']" position="after">
<group string="Education">
<field name="education"/>
</group>
</xpath>
<xpath expr="//field[@name='birthday']" position="after">
<field name="age"/>
</xpath>
</data>
</field>
</record>
<!-- Employee Personal/Education View -->
<record id="view_employee_social_tree" model="ir.ui.view">
<field name="name">hr.employee.tree</field>
<field name="model">hr.employee</field>
<field name="arch" type="xml">
<tree string="Employees">
<field name="name"/>
<field name="age"/>
<field name="gender"/>
<field name="education"/>
<field name="marital"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="department_id"/>
<field name="job_id"/>
<field name="parent_id" invisible="1"/>
<field name="coach_id" invisible="1"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="open_hr_employee_social_welfare">
<field name="name">Employee Social Welfare Report</field>
<field name="res_model">hr.employee</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="view_employee_social_tree"/>
<field name="search_view_id" ref="hr.view_employee_filter"/>
</record>
<menuitem name="Employee Social Welfare Report"
parent="hr.menu_hr_reporting"
id="menu_open_hr_employee_social_welfare"
action="open_hr_employee_social_welfare"
sequence="40"/>
</data>
</openerp>