-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_pointage_commentaire.xml
executable file
·74 lines (60 loc) · 2.39 KB
/
is_pointage_commentaire.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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- formulaire standard -->
<record model="ir.ui.view" id="is_pointage_commentaire_form_view">
<field name="name">is_pointage_commentaire_form_view</field>
<field name="model">is.pointage.commentaire</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Form" version="7.0">
<sheet>
<group col="2" colspan="4">
<field name="name"/>
<field name="employee"/>
<field name="commentaire"/>
</group>
</sheet>
</form>
</field>
</record>
<!-- tree -->
<record model="ir.ui.view" id="is_pointage_commentaire_tree_view">
<field name="name">is_pointage_commentaire_tree_view</field>
<field name="model">is.pointage.commentaire</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="pointage" editable="top">
<field name="name"/>
<field name="employee"/>
<field name="commentaire"/>
</tree>
</field>
</record>
<!-- Recherche -->
<record model="ir.ui.view" id="is_pointage_commentaire_filter_view" >
<field name="name">is_pointage_commentaire_filter_view</field>
<field name="model">is.pointage.commentaire</field>
<field name="arch" type="xml">
<search string="Recherche">
<field name="name"/>
<field name="employee"/>
<field name="commentaire"/>
<group expand="0" string="Regroupé par...">
<filter name="group_employee" string="Employé" context="{'group_by':'employee'}"/>
<filter name="group_mois" string="Mois" context="{'group_by':'name:month'}"/>
<filter name="group_semaine" string="Semaine" context="{'group_by':'name:week'}"/>
</group>
</search>
</field>
</record>
<!-- action -->
<record model="ir.actions.act_window" id="is_pointage_commentaire_action">
<field name="name">Commentaires de pointages</field>
<field name="res_model">is.pointage.commentaire</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_is_pointage_commentaire" sequence="25" parent="menu_is_pointage" action="is_pointage_commentaire_action" />
</data>
</openerp>