LEFT | RIGHT |
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <!-- This file is part of Tryton. The COPYRIGHT file at the top level of | 2 <!-- This file is part of Tryton. The COPYRIGHT file at the top level of |
3 this repository contains the full copyright notices and license terms. --> | 3 this repository contains the full copyright notices and license terms. --> |
4 <tryton> | 4 <tryton> |
5 <data> | 5 <data> |
6 <record model="res.group" id="group_production_admin"> | 6 <record model="res.group" id="group_production_admin"> |
7 <field name="name">Production Administration</field> | 7 <field name="name">Production Administration</field> |
8 </record> | 8 </record> |
9 <record model="res.user-res.group" | 9 <record model="res.user-res.group" |
10 id="user_admin_group_production_admin"> | 10 id="user_admin_group_production_admin"> |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 <menuitem name="Configuration" parent="menu_production" | 41 <menuitem name="Configuration" parent="menu_production" |
42 id="menu_configuration" | 42 id="menu_configuration" |
43 sequence="0" icon="tryton-preferences"/> | 43 sequence="0" icon="tryton-preferences"/> |
44 <record model="ir.ui.menu-res.group" | 44 <record model="ir.ui.menu-res.group" |
45 id="menu_configuration_group_production_admin"> | 45 id="menu_configuration_group_production_admin"> |
46 <field name="menu" ref="menu_configuration"/> | 46 <field name="menu" ref="menu_configuration"/> |
47 <field name="group" ref="group_production_admin"/> | 47 <field name="group" ref="group_production_admin"/> |
48 </record> | 48 </record> |
49 | 49 |
| 50 <record model="ir.action.wizard" id="wizard_assign"> |
| 51 <field name="name">Assign Production</field> |
| 52 <field name="wiz_name">production.assign</field> |
| 53 <field name="model">production</field> |
| 54 </record> |
| 55 |
50 <record model="ir.ui.view" id="production_view_list"> | 56 <record model="ir.ui.view" id="production_view_list"> |
51 <field name="model">production</field> | 57 <field name="model">production</field> |
52 <field name="type">tree</field> | 58 <field name="type">tree</field> |
53 <field name="arch" type="xml"> | 59 <field name="arch" type="xml"> |
54 <![CDATA[ | 60 <![CDATA[ |
55 <tree string="Productions"> | 61 <tree string="Productions"> |
| 62 <field name="product"/> |
56 <field name="code"/> | 63 <field name="code"/> |
57 <field name="reference"/> | 64 <field name="reference"/> |
58 <field name="planned_date"/> | 65 <field name="planned_date"/> |
59 <field name="effective_date"/> | 66 <field name="effective_date"/> |
60 <field name="state"/> | 67 <field name="state"/> |
61 <field name="create_date" tree_invisible="1"/> | 68 <field name="create_date" tree_invisible="1"/> |
62 </tree> | 69 </tree> |
63 ]]> | 70 ]]> |
64 </field> | 71 </field> |
65 </record> | 72 </record> |
(...skipping 26 matching lines...) Expand all Loading... |
92 <field name="outputs" colspan="2"/> | 99 <field name="outputs" colspan="2"/> |
93 </page> | 100 </page> |
94 <page string="Other Info" id="other"> | 101 <page string="Other Info" id="other"> |
95 <label name="company"/> | 102 <label name="company"/> |
96 <field name="company"/> | 103 <field name="company"/> |
97 <newline/> | 104 <newline/> |
98 <label name="warehouse"/> | 105 <label name="warehouse"/> |
99 <field name="warehouse"/> | 106 <field name="warehouse"/> |
100 <label name="location"/> | 107 <label name="location"/> |
101 <field name="location"/> | 108 <field name="location"/> |
| 109 <label name="cost"/> |
| 110 <field name="cost"/> |
102 </page> | 111 </page> |
103 </notebook> | 112 </notebook> |
104 <group col="4" colspan="4" id="state_buttons"> | 113 <group col="4" colspan="4" id="state_buttons"> |
105 <label name="state"/> | 114 <label name="state"/> |
106 <field name="state"/> | 115 <field name="state"/> |
107 <group col="1" colspan="2" id="buttons"> | 116 <group col="6" colspan="2" id="buttons"> |
| 117 <button name="cancel" type="object" string="Cancel" |
| 118 icon="tryton-cancel"/> |
| 119 <button name="draft" type="object" string="Draft"/> |
| 120 <button name="wait" type="object" string="Wait"/> |
| 121 <button name="%(wizard_assign)d" type="action" |
| 122 string="Assign" |
| 123 states="{'invisible': Not(Equal(Eval('state'), '
waiting')), 'readonly': Not(In(%(stock.group_stock)d, Eval('groups', [])))}" |
| 124 icon="tryton-go-next"/> |
| 125 <button name="run" type="object" string="Run" |
| 126 icon="tryton-go-next"/> |
| 127 <button name="done" type="object" string="Done" |
| 128 icon="tryton-go-next"/> |
108 </group> | 129 </group> |
109 </group> | 130 </group> |
110 </form> | 131 </form> |
111 ]]> | 132 ]]> |
112 </field> | 133 </field> |
113 </record> | 134 </record> |
114 | 135 |
115 <record model="ir.action.act_window" id="act_production_list"> | 136 <record model="ir.action.act_window" id="act_production_list"> |
116 <field name="name">Productions</field> | 137 <field name="name">Productions</field> |
117 <field name="res_model">production</field> | 138 <field name="res_model">production</field> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 </record> | 186 </record> |
166 <record model="ir.action.act_window.view" | 187 <record model="ir.action.act_window.view" |
167 id="act_production_draft_view2"> | 188 id="act_production_draft_view2"> |
168 <field name="sequence" eval="20"/> | 189 <field name="sequence" eval="20"/> |
169 <field name="view" ref="production_view_form"/> | 190 <field name="view" ref="production_view_form"/> |
170 <field name="act_window" ref="act_production_draft"/> | 191 <field name="act_window" ref="act_production_draft"/> |
171 </record> | 192 </record> |
172 <menuitem parent="menu_production_list" sequence="20" | 193 <menuitem parent="menu_production_list" sequence="20" |
173 action="act_production_draft" id="menu_production_draft"/> | 194 action="act_production_draft" id="menu_production_draft"/> |
174 | 195 |
| 196 <record model="ir.action.act_window" id="act_production_waiting"> |
| 197 <field name="name">Waiting Productions</field> |
| 198 <field name="res_model">production</field> |
| 199 <field name="search_value">[('state', '=', 'waiting')]</field> |
| 200 </record> |
| 201 <record model="ir.action.act_window.view" |
| 202 id="act_production_waiting_view1"> |
| 203 <field name="sequence" eval="10"/> |
| 204 <field name="view" ref="production_view_list"/> |
| 205 <field name="act_window" ref="act_production_waiting"/> |
| 206 </record> |
| 207 <record model="ir.action.act_window.view" |
| 208 id="act_production_waiting_view2"> |
| 209 <field name="sequence" eval="20"/> |
| 210 <field name="view" ref="production_view_form"/> |
| 211 <field name="act_window" ref="act_production_waiting"/> |
| 212 </record> |
| 213 <menuitem parent="menu_production_list" sequence="30" |
| 214 action="act_production_waiting" id="menu_production_waiting"/> |
| 215 |
175 <record model="ir.action.act_window" id="act_production_assigned"> | 216 <record model="ir.action.act_window" id="act_production_assigned"> |
176 <field name="name">Assigned Productions</field> | 217 <field name="name">Assigned Productions</field> |
177 <field name="res_model">production</field> | 218 <field name="res_model">production</field> |
178 <field name="search_value">[('state', '=', 'assigned')]</field> | 219 <field name="search_value">[('state', '=', 'assigned')]</field> |
179 </record> | 220 </record> |
180 <record model="ir.action.act_window.view" | 221 <record model="ir.action.act_window.view" |
181 id="act_production_assigned_view1"> | 222 id="act_production_assigned_view1"> |
182 <field name="sequence" eval="10"/> | 223 <field name="sequence" eval="10"/> |
183 <field name="view" ref="production_view_list"/> | 224 <field name="view" ref="production_view_list"/> |
184 <field name="act_window" ref="act_production_assigned"/> | 225 <field name="act_window" ref="act_production_assigned"/> |
185 </record> | 226 </record> |
186 <record model="ir.action.act_window.view" | 227 <record model="ir.action.act_window.view" |
187 id="act_production_assigned_view2"> | 228 id="act_production_assigned_view2"> |
188 <field name="sequence" eval="20"/> | 229 <field name="sequence" eval="20"/> |
189 <field name="view" ref="production_view_form"/> | 230 <field name="view" ref="production_view_form"/> |
190 <field name="act_window" ref="act_production_assigned"/> | 231 <field name="act_window" ref="act_production_assigned"/> |
191 </record> | 232 </record> |
192 <menuitem parent="menu_production_list" sequence="30" | 233 <menuitem parent="menu_production_list" sequence="40" |
193 action="act_production_assigned" id="menu_production_assigned"/> | 234 action="act_production_assigned" id="menu_production_assigned"/> |
194 | 235 |
195 <record model="ir.action.act_window" id="act_production_running"> | 236 <record model="ir.action.act_window" id="act_production_running"> |
196 <field name="name">Running Productions</field> | 237 <field name="name">Running Productions</field> |
197 <field name="res_model">production</field> | 238 <field name="res_model">production</field> |
198 <field name="search_value">[('state', '=', 'running')]</field> | 239 <field name="search_value">[('state', '=', 'running')]</field> |
199 </record> | 240 </record> |
200 <record model="ir.action.act_window.view" | 241 <record model="ir.action.act_window.view" |
201 id="act_production_running_view1"> | 242 id="act_production_running_view1"> |
202 <field name="sequence" eval="10"/> | 243 <field name="sequence" eval="10"/> |
203 <field name="view" ref="production_view_list"/> | 244 <field name="view" ref="production_view_list"/> |
204 <field name="act_window" ref="act_production_running"/> | 245 <field name="act_window" ref="act_production_running"/> |
205 </record> | 246 </record> |
206 <record model="ir.action.act_window.view" | 247 <record model="ir.action.act_window.view" |
207 id="act_production_running_view2"> | 248 id="act_production_running_view2"> |
208 <field name="sequence" eval="20"/> | 249 <field name="sequence" eval="20"/> |
209 <field name="view" ref="production_view_form"/> | 250 <field name="view" ref="production_view_form"/> |
210 <field name="act_window" ref="act_production_running"/> | 251 <field name="act_window" ref="act_production_running"/> |
211 </record> | 252 </record> |
212 <menuitem parent="menu_production_list" sequence="40" | 253 <menuitem parent="menu_production_list" sequence="50" |
213 action="act_production_running" id="menu_production_running"/> | 254 action="act_production_running" id="menu_production_running"/> |
214 | 255 |
215 <record model="ir.sequence.type" id="sequence_type_production"> | 256 <record model="ir.sequence.type" id="sequence_type_production"> |
216 <field name="name">Production</field> | 257 <field name="name">Production</field> |
217 <field name="code">production</field> | 258 <field name="code">production</field> |
218 </record> | 259 </record> |
219 <record model="ir.sequence.type-res.group" | 260 <record model="ir.sequence.type-res.group" |
220 id="sequence_type_production_group_admin"> | 261 id="sequence_type_production_group_admin"> |
221 <field name="sequence_type" ref="sequence_type_production"/> | 262 <field name="sequence_type" ref="sequence_type_production"/> |
222 <field name="group" ref="res.group_admin"/> | 263 <field name="group" ref="res.group_admin"/> |
(...skipping 29 matching lines...) Expand all Loading... |
252 <field name="model" search="[('model', '=', 'production')]"/> | 293 <field name="model" search="[('model', '=', 'production')]"/> |
253 <field name="global_p" eval="True"/> | 294 <field name="global_p" eval="True"/> |
254 </record> | 295 </record> |
255 <record model="ir.rule" id="rule_production"> | 296 <record model="ir.rule" id="rule_production"> |
256 <field name="field" search="[('name', '=', 'company'), ('model.model
', '=', 'production')]"/> | 297 <field name="field" search="[('name', '=', 'company'), ('model.model
', '=', 'production')]"/> |
257 <field name="operator">=</field> | 298 <field name="operator">=</field> |
258 <field name="operand">User/Current Company</field> | 299 <field name="operand">User/Current Company</field> |
259 <field name="rule_group" ref="rule_group_production"/> | 300 <field name="rule_group" ref="rule_group_production"/> |
260 </record> | 301 </record> |
261 | 302 |
| 303 <record model="ir.model.button" id="production_cancel_button"> |
| 304 <field name="name">cancel</field> |
| 305 <field name="model" |
| 306 search="[('model', '=', 'production')]"/> |
| 307 </record> |
| 308 <record model="ir.model.button-res.group" |
| 309 id="production_cancel_button_group_production"> |
| 310 <field name="button" ref="production_cancel_button"/> |
| 311 <field name="group" ref="group_production"/> |
| 312 </record> |
| 313 |
| 314 <record model="ir.model.button" id="production_draft_button"> |
| 315 <field name="name">draft</field> |
| 316 <field name="model" |
| 317 search="[('model', '=', 'production')]"/> |
| 318 </record> |
| 319 <record model="ir.model.button-res.group" |
| 320 id="production_draft_button_group_production"> |
| 321 <field name="button" ref="production_draft_button"/> |
| 322 <field name="group" ref="group_production"/> |
| 323 </record> |
| 324 |
| 325 <record model="ir.model.button" id="production_wait_button"> |
| 326 <field name="name">wait</field> |
| 327 <field name="model" |
| 328 search="[('model', '=', 'production')]"/> |
| 329 </record> |
| 330 <record model="ir.model.button-res.group" |
| 331 id="production_wait_button_group_production"> |
| 332 <field name="button" ref="production_wait_button"/> |
| 333 <field name="group" ref="group_production"/> |
| 334 </record> |
| 335 |
| 336 <record model="ir.model.button" id="production_run_button"> |
| 337 <field name="name">run</field> |
| 338 <field name="model" |
| 339 search="[('model', '=', 'production')]"/> |
| 340 </record> |
| 341 <record model="ir.model.button-res.group" |
| 342 id="production_run_button_group_production"> |
| 343 <field name="button" ref="production_run_button"/> |
| 344 <field name="group" ref="group_production"/> |
| 345 </record> |
| 346 |
| 347 <record model="ir.model.button" id="production_done_button"> |
| 348 <field name="name">done</field> |
| 349 <field name="model" |
| 350 search="[('model', '=', 'production')]"/> |
| 351 </record> |
| 352 <record model="ir.model.button-res.group" |
| 353 id="production_done_button_group_production"> |
| 354 <field name="button" ref="production_done_button"/> |
| 355 <field name="group" ref="group_production"/> |
| 356 </record> |
| 357 |
| 358 <record model="ir.model.button" id="production_assign_try_button"> |
| 359 <field name="name">assign_try</field> |
| 360 <field name="model" |
| 361 search="[('model', '=', 'production')]"/> |
| 362 </record> |
| 363 <record model="ir.model.button-res.group" |
| 364 id="production_assign_try_button_group_production"> |
| 365 <field name="button" ref="production_assign_try_button"/> |
| 366 <field name="group" ref="group_production"/> |
| 367 </record> |
| 368 |
| 369 <record model="ir.model.button" id="production_assign_force_button"> |
| 370 <field name="name">assign_force</field> |
| 371 <field name="model" |
| 372 search="[('model', '=', 'production')]"/> |
| 373 </record> |
| 374 <record model="ir.model.button-res.group" |
| 375 id="production_assign_force_button_group_production"> |
| 376 <field name="button" ref="production_assign_force_button"/> |
| 377 <field name="group" ref="stock.group_stock_force_assignment"/> |
| 378 </record> |
| 379 |
| 380 <record model="ir.ui.view" id="assign_failed_view_form"> |
| 381 <field name="model">production.assign.failed</field> |
| 382 <field name="type">form</field> |
| 383 <field name="arch" type="xml"> |
| 384 <![CDATA[ |
| 385 <form string="Unable to Assign" col="2"> |
| 386 <image name="tryton-dialog-warning" xexpand="0" xfill="0"/> |
| 387 <separator string="Unable to assign those products:" |
| 388 id="unable"/> |
| 389 <field name="moves" colspan="2" |
| 390 view_ids="stock.move_view_tree_simple"/> |
| 391 </form> |
| 392 ]]> |
| 393 </field> |
| 394 </record> |
| 395 |
262 </data> | 396 </data> |
263 </tryton> | 397 </tryton> |
LEFT | RIGHT |