-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_badge.xml
executable file
·67 lines (55 loc) · 2.04 KB
/
is_badge.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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Moule : formulaire standard -->
<record model="ir.ui.view" id="is_badge_form_view">
<field name="name">is_badge_form_view</field>
<field name="model">is.badge</field>
<field name="type">form</field>
<field name="arch" type="xml">
<!-- ATTENTION : Pour pouvoir utiliser la balise <sheet> qui permet d'avoir une plus
belle mise en page il est obligatoire de mette 'version="7" -->
<form string="Form" version="7.0">
<sheet>
<group col="2" colspan="4">
<field name="name"/>
<field name="employee"/>
</group>
</sheet>
</form>
</field>
</record>
<!-- Moule : tree -->
<record model="ir.ui.view" id="is_badge_tree_view">
<field name="name">is_badge_tree_view</field>
<field name="model">is.badge</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="badge">
<field name="employee"/>
<field name="name"/>
</tree>
</field>
</record>
<!-- Moule : Recherche -->
<record model="ir.ui.view" id="is_badge_filter_view" >
<field name="name">is_badge_filter_view</field>
<field name="model">is.badge</field>
<field name="arch" type="xml">
<search string="Recherche">
<field name="name" filter_domain="[('name', 'ilike', self)]"/>
<field name="employee" />
</search>
</field>
</record>
<!-- Moule : action -->
<record model="ir.actions.act_window" id="is_badge_action">
<field name="name">Badges</field>
<field name="res_model">is.badge</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_is_pointage" sequence="20" name="Pointage" parent="hr.menu_hr_root" />
<menuitem id="menu_is_pointage_badge" sequence="10" name="Badges" parent="menu_is_pointage" action="is_badge_action" />
</data>
</openerp>