-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmam_enfant_view.xml
179 lines (175 loc) · 6.58 KB
/
mam_enfant_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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!--enfant-->
<!--enfant tree-->
<record model="ir.ui.view" id="view_enfant_tree">
<field name="name">enfant.tree</field>
<field name="model">mam.enfant</field>
<field name="arch" type="xml">
<tree string="enfant">
<field name="prenom"/>
<field name="nom"/>
<field name="date_naiss"/>
<field name="am_id"/>
<field name="contact_ids"/>
<field name="allergies"/>
<field name="recommandations"/>
</tree>
</field>
</record>
<!--enfant form-->
<record model="ir.ui.view" id="view_enfant_form">
<field name="name">enfant.form</field>
<field name="model">mam.enfant</field>
<field name="arch" type="xml">
<form string="enfant">
<!-- <group col="4" colspan="2">
<separator string="Aujourd'hui" colspan="4"/>
<field name="today_est_present" colspan="4"/>
<button name="clique_presence_debut" string="Arrivee" type="object" confirm="True" icon="gtk-execute" attrs="{'invisible':[('today_est_present', '==', True)]}"/>
<button name="clique_presence_fin" string="Depart" type="object" confirm="True" icon="gtk-execute" attrs="{'invisible':[('today_est_present', '==', False)]}"/>
<button name="clique_mange_midi" string="Mange midi" type="object"/>
<button name="clique_mange_gouter" string="Mange gouter" type="object"/>
<field name="today_presence_ids" colspan="4" nolabel="1"/>
</group> -->
<group col="2" colspan="2">
<notebook colspan="2">
<page string="General">
<group col="2" colspan="4">
<field name="prenom"/>
<field name="nom"/>
<field name="date_naiss"/>
<field name="am_id"/>
<field name="recommandations"/>
<field name="allergies"/>
</group>
</page>
<page string="Contacts">
<field name="contact_ids" nolabel="1">
<tree>
<field name="nom"/>
<field name="prenom"/>
</tree>
</field>
</page>
<page string="Prévisions et jours types">
<group col="1" colspan="4">
<button name="action_creer_jours" type="object" class="oe_highlight" string="Cliquer pour creer les jours futurs pour l'enfant" />
<separator string="" colspan="1"/>
<field name="jour_type_ids" string="Jours types de l'enfant" readonly="1" >
<tree>
<field name="libelle"/>
<field name="mange_midi"/>
<field name="mange_gouter"/>
</tree>
</field>
</group>
<separator string="Calendrier de l'enfant" colspan="1"/>
<group col="2" colspan="4">
<field name="jour_e_ids" nolabel="1" readonly="1" >
<tree>
<field name="enfant_id"/>
<field name="jour"/>
<field name="state"/>
<field name="libelle_prevue"/>
<field name="mange_midi"/>
<field name="mange_gouter"/>
<button name="action_effacer_prevision" type="object" icon="gtk-media-stop" string="Effacer prev." attrs="{'invisible': [('state','!=','encours')]}" />
<button name="action_associer_jour_type_1" type="object" icon="gtk-execute" string="Jour type 1" context="{'numero_type':0}" attrs="{'invisible': [('state','!=','encours')]}" />
<button name="action_associer_jour_type_2" type="object" icon="gtk-execute" string="Jour type 2" context="{'numero_type':1}" attrs="{'invisible': [('state','!=','encours')]}" />
<button name="action_associer_jour_type_3" type="object" icon="gtk-execute" string="Jour type 3" context="{'numero_type':2}" attrs="{'invisible': [('state','!=','encours')]}" />
<button name="action_associer_jour_type_4" type="object" icon="gtk-execute" string="Jour type 4" context="{'numero_type':3}" attrs="{'invisible': [('state','!=','encours')]}" />
</tree>
</field>
</group>
</page>
<!-- <page string="Technique">
<group col="2" colspan="4">
</group>
</page> -->
</notebook>
</group>
</form>
</field>
</record>
<!--enfant form pour assigner jours types-->
<!-- <record model="ir.ui.view" id="view_enfant_assign_jours_tree">
<field name="name">enfant.tree</field>
<field name="model">mam.enfant</field>
<field name="arch" type="xml">
<tree string="enfant">
<field name="prenom"/>
<field name="date_naiss"/>
</tree>
</field>
</record> -->
<!--enfant search-->
<record model="ir.ui.view" id="mam_enfant_search_view">
<field name="name">mam.enfant.search</field>
<field name="model">mam.enfant</field>
<field name="arch" type="xml">
<search string="Recherche Enfant">
<field name="prenom"/>
<!-- <filter name="only_writable" domain="[('is_active','=',True),('current_company_id.vinciid_responsible_ids.user_id','in',[uid])]" string="Only Writable"/> -->
<group expand="1" string="Group By...">
<filter string="Ass Mat" domain="[]" context="{'group_by':'am_id'}"/>
</group>
</search>
</field>
</record>
<!--enfant action-->
<record model="ir.actions.act_window" id="action_enfant">
<field name="name">Enfant</field>
<field name="res_model">mam.enfant</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<!-- contrat -->
<!--contrat tree-->
<record model="ir.ui.view" id="view_contrat_tree">
<field name="name">mam.contrat.tree</field>
<field name="model">mam.contrat</field>
<field name="arch" type="xml">
<tree string="Contrat">
<field name="enfant_id"/>
<field name="am_id"/>
<field name="contact_id"/>
<field name="type"/>
<field name="avenant_ids"/>
</tree>
</field>
</record>
<!--contrat form-->
<record model="ir.ui.view" id="view_contrat_form">
<field name="name">mam.contrat.form</field>
<field name="model">mam.contrat</field>
<field name="arch" type="xml">
<form string="Contrat">
<group col="2" colspan="2">
<field name="enfant_id"/>
<field name="am_id"/>
<field name="contact_id"/>
<field name="type"/>
<field name="avenant_ids" string="Avenants" >
<tree editable='bottom'>
<field name="date_debut"/>
<field name="date_fin"/>
<field name="nb_h_par_an"/>
<field name="nb_m_effectif"/>
<button name="action_creer_mois" type="object" class="oe_highlight" string="Creer mois" />
</tree>
</field>
</group>
</form>
</field>
</record>
<!--contrat action-->
<record model="ir.actions.act_window" id="action_contrat">
<field name="name">Contrats</field>
<field name="res_model">mam.contrat</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
</data>
</openerp>