-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_pdc_view.xml
214 lines (197 loc) · 10.2 KB
/
is_pdc_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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.actions.act_window" id="is_pdc_mold_action">
<field name="name">Charge par moule</field>
<field name="res_model">is.pdc.mold</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('pdc_id','=',active_id)]</field>
<!--<field name="context">{'pdc_id': active_id}</field>-->
</record>
<record model="ir.ui.view" id="is_pdc_form_view">
<field name="name">is_pdc_form_view</field>
<field name="model">is.pdc</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Form">
<header>
<button name="action_importer_cbn" type="object" string="Importer les données du CBN" class="oe_highlight" states="creation" />
<button name="action_recalculer" type="object" string="Recalculer" class="oe_highlight" states="analyse" />
<button name="%(is_pdc_mold_action)d" type="action" string="Détail par moule et par section" states="analyse" />
<field name="state" widget="statusbar" clickable="True" />
</header>
<sheet>
<!--
<div class="oe_right oe_button_box" name="buttons">
<button class="oe_inline oe_stat_button" type="action" name="%(is_pdc_mold_action)d" icon="fa-tasks">
<field string="Détail" name="mold_nb" widget="statinfo"/>
</button>
</div>
-->
<group>
<group>
<field name="name" attrs="{'readonly':[('state','in',['analyse'])]}"/>
<field name="date_debut" attrs="{'readonly':[('state','in',['analyse'])]}"/>
<field name="date_fin" attrs="{'readonly':[('state','in',['analyse'])]}"/>
</group>
</group>
<group>
<field name="nb_heures_total" digits="(14, 0)"/>
<field name="tps_brut" digits="(14, 0)"/>
</group>
<group>
<field name="nb_jours_ouvrables"/>
<field name="nb_inscrits"/>
<field name="nb_absents"/>
<field name="effectif_operationnel"/>
</group>
<group>
<field name="decision_prise"/>
</group>
<group>
<field name="mod_ids" readonly="1" nolabel="1">
<tree>
<field name="intitule"/>
<field name="semaine_35"/>
<field name="semaine_37"/>
<field name="semaine_40"/>
<field name="semaine_48"/>
</tree>
</field>
</group>
<group>
<field name="temps_ouverture"/>
<!--
<field name="nb_presses" readonly="1"/>
<field name="nb_heures_periode" readonly="1"/>
<field name="total_presse_heure" readonly="1"/>
<field name="presse_pourcent" readonly="1"/>
<field name="presse_pourcent85" readonly="1"/>
-->
</group>
<group>
<field name="workcenter_ids" readonly="1" nolabel="1">
<tree>
<button
string="Liste des moules"
name= "action_acces_moules" type="object" icon="gtk-justify-fill"
attrs="{'invisible':[('workcenter_id','=',False)]}"
/>
<field name="workcenter_id"/>
<field name="presse_heure" digits="(14, 0)" sum="Total"/>
<field name="presse_pourcent" digits="(14, 0)" />
<field name="presse_heure85" digits="(14, 0)" sum="Total"/>
<field name="presse_pourcent85" digits="(14, 0)" />
</tree>
</field>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="is_pdc_tree_view">
<field name="name">is_pdc_tree_view</field>
<field name="model">is.pdc</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="date_debut"/>
<field name="date_fin"/>
<field name="nb_jours_ouvrables"/>
<field name="nb_inscrits"/>
<field name="nb_absents"/>
<field name="temps_ouverture"/>
<field name="decision_prise"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="is_pdc_search_view" >
<field name="name">is_pdc_search_view</field>
<field name="model">is.pdc</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
</search>
</field>
</record>
<record model="ir.actions.act_window" id="is_pdc_action">
<field name="name">Plan de charge</field>
<field name="res_model">is.pdc</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Plan de charge par moule -->
<record model="ir.ui.view" id="is_pdc_mold_form_view">
<field name="name">is_pdc_mold_form_view</field>
<field name="model">is.pdc.mold</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="pdc_id" readonly="1"/>
<field name="workcenter_id"/>
<field name="resource_type"/>
<!--<field name="mold_id" readonly="1"/>-->
<field name="mold_dossierf"/>
<field name="matiere"/>
<field name="quantite"/>
<field name="temps_h"/>
<field name="capacite"/>
<field name="temps_pourcent" digit=""/>
<field name="cumul_pourcent"/>
<field name="cumul_h"/>
<field name="cumul_j"/>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="is_pdc_mold_tree_view">
<field name="name">is_pdc_mold_tree_view</field>
<field name="model">is.pdc.mold</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree editable="top" colors="red:cumul_pourcent and (cumul_pourcent>100)">
<field name="pdc_id" readonly="1"/>
<field name="workcenter_id"/>
<field name="resource_type"/>
<!--<field name="mold_id" readonly="1"/>-->
<field name="mold_dossierf"/>
<field name="matiere"/>
<field name="quantite" sum="Total"/>
<field name="temps_u" digits="(14, 2)" />
<field name="temps_h" digits="(14, 2)" sum="Total"/>
<field name="capacite" digits="(14, 0)" />
<field name="temps_pourcent" digits="(14, 0)" />
<field name="cumul_pourcent" digits="(14, 0)" />
<field name="cumul_h" digits="(14, 0)" />
<field name="cumul_j" digits="(14, 2)" />
</tree>
</field>
</record>
<record model="ir.ui.view" id="is_pdc_mold_search_view" >
<field name="name">is_pdc_mold_search_view</field>
<field name="model">is.pdc.mold</field>
<field name="arch" type="xml">
<search>
<field name="pdc_id"/>
<field name="workcenter_id"/>
<field name="resource_type"/>
<field name="mold_dossierf"/>
<!-- Filtres pré-enregistrés -->
<filter string="MO" name="type_mo" domain="[('resource_type','=','user')]"/>
<filter string="Machine" name="type_machine" domain="[('resource_type','=','material')]"/>
<group expand="1" string="Regrouper par">
<filter string="Poste de charge" context="{'group_by':'workcenter_id'}"/>
<filter string="Type" context="{'group_by':'resource_type'}"/>
<filter string="Moule" context="{'group_by':'mold_dossierf'}"/>
</group>
</search>
</field>
</record>
</data>
</openerp>