-
Notifications
You must be signed in to change notification settings - Fork 0
/
hr_transfer_view.xml
66 lines (62 loc) · 3.09 KB
/
hr_transfer_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
<?xml version="1.0" encoding="utf-8" ?>
<openerp>
<data>
<record id="department_transfer_tree_view" model="ir.ui.view">
<field name="name">hr.department.transfer.tree</field>
<field name="model">hr.department.transfer</field>
<field name="arch" type="xml">
<tree string="Departmental Transfers">
<field name="employee_id"/>
<field name="src_id"/>
<field name="dst_id"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="department_transfer_form_view" model="ir.ui.view">
<field name="name">hr.department.transfer.form</field>
<field name="model">hr.department.transfer</field>
<field name="arch" type="xml">
<form string="Departmental Transfer" version="7.0">
<sheet>
<header>
<button name="signal_confirm" type="workflow" states="draft" string="Confirm" class="oe_highlight"/>
<button name="signal_pending" type="workflow" states="confirm" string="Transfer" class="oe_highlight"/>
<button name="signal_cancel" type="workflow" states="confirm,pending" string="Cancel" class="oe_highlight"/>
<field name="state" widget="statusbar"/>
</header>
<group>
<group>
<field name="employee_id" on_change="onchange_employee(employee_id)"/>
<field name="src_id" widget="selection"/>
<field name="dst_id" widget="selection"/>
<field name="date"/>
</group>
<group>
<field name="src_department_id"/>
<field name="src_contract_id"/>
<field name="dst_department_id"/>
<field name="dst_contract_id"/>
</group>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
<record id="open_hr_department_transfer" model="ir.actions.act_window">
<field name="name">Departmental Transfers</field>
<field name="res_model">hr.department.transfer</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_hr_department_transfer"
action="open_hr_department_transfer"
parent="hr.menu_hr_main"
sequence="140"/>
</data>
</openerp>