~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to stock_override/stock_view.xml

  • Committer: chloups208
  • Date: 2011-09-07 12:58:12 UTC
  • mto: (307.2.1 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 311.
  • Revision ID: chloups208@chloups208-laptop-20110907125812-dsb1jt93ae6bgfe2
[UF-390]pro forma invoice + shipment object refactoring + pack family object refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8" ?>
2
 
<openerp>
3
 
    <data>
4
 
 
5
 
        <record id="stock_location_chained_nomen_form_view" model="ir.ui.view">
6
 
            <field name="name">stock.location.chained.nomen.form.view</field>
7
 
            <field name="model">stock.location</field>
8
 
            <field name="type">form</field>
9
 
            <field name="inherit_id" ref="stock.view_location_form" />
10
 
            <field name="arch" type="xml">
11
 
                <data>
12
 
                    <xpath expr="/form//field[@name='chained_location_type']" position="attributes">
13
 
                        <attribute name="on_change">on_change_location_type(chained_location_type)</attribute>
14
 
                    </xpath>
15
 
 
16
 
                    <xpath expr="/form/group[3]" position="after" >
17
 
                        <group colspan="2" col="2" attrs="{'invisible': [('chained_location_type', '!=', 'nomenclature')]}">
18
 
                            <separator colspan="2" string="Chaining options" />
19
 
                            <field name="chained_options_ids" colspan="2" nolabel="1">
20
 
                                <tree string="Chaining options" editable="top">
21
 
                                    <field name="nomen_id" domain= "[('level', '=', 0)]" />
22
 
                                    <field name="dest_location_id" domain="[('usage', '=', 'internal')]" />
23
 
                                </tree>
24
 
                            </field>
25
 
                        </group>
26
 
                    </xpath>
27
 
                </data>
28
 
            </field>
29
 
        </record>
30
 
 
31
 
        <record id="view_picking_form_inherit_sale" model="ir.ui.view">
32
 
            <field name="name">view.picking.form.inherit.sale</field>
33
 
            <field name="model">stock.picking</field>
34
 
            <field name="type">form</field>
35
 
            <field name="inherit_id" ref="sale.stock_picking_inherit_sale" />
36
 
            <field name="arch" type="xml">
37
 
                <xpath expr="/form/notebook/page[@string='Additional info']/field[@name='sale_id']" position="attributes">
38
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}</attribute>
39
 
                </xpath>
40
 
            </field>
41
 
        </record>
42
 
 
43
 
        <record id="view_picking_out_form_inherit_sale" model="ir.ui.view">
44
 
            <field name="name">view.picking.form.out.inherit.sale</field>
45
 
            <field name="model">stock.picking</field>
46
 
            <field name="type">form</field>
47
 
            <field name="inherit_id" ref="sale.stock_picking_out_inherit_sale" />
48
 
            <field name="arch" type="xml">
49
 
                <xpath expr="/form//field[@name='sale_id']" position="attributes">
50
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}</attribute>
51
 
                </xpath>
52
 
                <xpath expr="/form//field[@name='partner_id2']" position="attributes">
53
 
                    <attribute name="domain">[('customer', '=', True)]</attribute>
54
 
                </xpath>
55
 
            </field>
56
 
        </record>
57
 
 
58
 
        <record id="inherit_view_move_form" model="ir.ui.view">
59
 
            <field name="name">inherit.view.move.form</field>
60
 
            <field name="model">stock.move</field>
61
 
            <field name="type">form</field>
62
 
            <field name="inherit_id" ref="stock.view_move_form" />
63
 
            <field name="arch" type="xml">
64
 
                <xpath expr="/form//field[@name='product_id']" position="attributes">
65
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
66
 
                </xpath>
67
 
                <xpath expr="/form//field[@name='product_qty']" position="attributes">
68
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
69
 
                </xpath>
70
 
                <xpath expr="/form//field[@name='product_uom']" position="attributes">
71
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
72
 
                    <attribute name="domain">[('uom_by_product', '=', product_id)]</attribute>
73
 
                </xpath>
74
 
                <xpath expr="/form//field[@name='location_id']" position="attributes">
75
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
76
 
                </xpath>
77
 
                <xpath expr="/form//field[@name='location_dest_id']" position="attributes">
78
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
79
 
                </xpath>
80
 
                <xpath expr="/form//field[@name='address_id']" position="replace">
81
 
                        <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)" 
82
 
                                                attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
83
 
                        <field name="address_id" attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
84
 
                </xpath>
85
 
                <xpath expr="/form//field[@name='picking_id']" position="attributes">
86
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
87
 
                </xpath>
88
 
                <xpath expr="/form//field[@name='tracking_id']" position="attributes">
89
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
90
 
                </xpath>
91
 
                <xpath expr="/form//field[@name='date_expected']" position="attributes">
92
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
93
 
                </xpath>
94
 
                <xpath expr="/form//field[@name='name']" position="attributes">
95
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
96
 
                </xpath>
97
 
                <xpath expr="/form//button[@string='New pack']" position="attributes">
98
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
99
 
                </xpath>
100
 
                <xpath expr="/form//button[@string='Split']" position="attributes">
101
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
102
 
                </xpath>
103
 
            </field>
104
 
        </record>
105
 
        
106
 
        <record id="inherit_view_move_form_reception_picking" model="ir.ui.view">
107
 
            <field name="name">inherit.view.move.form</field>
108
 
            <field name="model">stock.move</field>
109
 
            <field name="type">form</field>
110
 
            <field name="inherit_id" ref="stock.view_move_form_reception_picking" />
111
 
            <field name="arch" type="xml">
112
 
                <xpath expr="/form//field[@name='product_id']" position="attributes">
113
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
114
 
                </xpath>
115
 
                <xpath expr="/form//field[@name='product_qty']" position="attributes">
116
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
117
 
                </xpath>
118
 
                <xpath expr="/form//field[@name='product_uom']" position="attributes">
119
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
120
 
                    <attribute name="domain">[('uom_by_product', '=', product_id)]</attribute>
121
 
                </xpath>
122
 
                <xpath expr="/form//field[@name='location_id']" position="attributes">
123
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
124
 
                </xpath>
125
 
                <xpath expr="/form//field[@name='location_dest_id']" position="attributes">
126
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
127
 
                </xpath>
128
 
                <xpath expr="/form//field[@name='address_id']" position="replace">
129
 
                        <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)" 
130
 
                                                attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
131
 
                        <field name="address_id" attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
132
 
                </xpath>
133
 
                <xpath expr="/form//field[@name='picking_id']" position="attributes">
134
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
135
 
                </xpath>
136
 
                <xpath expr="/form//field[@name='tracking_id']" position="attributes">
137
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
138
 
                </xpath>
139
 
                <xpath expr="/form//field[@name='date_expected']" position="attributes">
140
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
141
 
                </xpath>
142
 
                <xpath expr="/form//field[@name='name']" position="attributes">
143
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
144
 
                </xpath>
145
 
                <xpath expr="/form//button[@string='New pack']" position="attributes">
146
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
147
 
                </xpath>
148
 
                <xpath expr="/form//button[@string='Split']" position="attributes">
149
 
                    <attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
150
 
                </xpath>
151
 
            </field>
152
 
        </record>        
153
 
 
154
 
        <record id="view_split_in_lots" model="ir.ui.view">
155
 
            <field name="name">view.split.in.lots</field>
156
 
            <field name="model">stock.move.split</field>
157
 
            <field name="type">form</field>
158
 
            <field name="inherit_id" ref="stock.view_split_in_lots" />
159
 
            <field name="arch" type="xml">
160
 
                <data>
161
 
                    <xpath expr="/form//field[@name='use_exist']" position="attributes">
162
 
                        <attribute name="string">Ues existing batches</attribute>
163
 
                    </xpath>
164
 
                    <xpath expr="/form" position="attributes">
165
 
                        <attribute name="string">Split in batches</attribute>
166
 
                    </xpath>
167
 
                    <xpath expr="/form//field[@name='line_ids']/tree" position="attributes">
168
 
                        <attribute name="string">Batch numbers</attribute>
169
 
                    </xpath>
170
 
                    <xpath expr="/form//field[@name='line_ids']/tree/field[@name='name']" position="attributes">
171
 
                        <attribute name="string">Batch numbers</attribute>
172
 
                    </xpath>
173
 
                    <xpath expr="/form//field[@name='line_ids']/form" position="attributes">
174
 
                        <attribute name="string">Batch number</attribute>
175
 
                    </xpath>
176
 
                    <xpath expr="/form//field[@name='line_ids']/form/field[@name='name']" position="attributes">
177
 
                        <attribute name="string">Batch number</attribute>
178
 
                    </xpath>
179
 
                    <xpath expr="/form//field[@name='line_exist_ids']/tree" position="attributes">
180
 
                        <attribute name="string">Batch numbers</attribute>
181
 
                    </xpath>
182
 
                    <xpath expr="/form//field[@name='line_exist_ids']/tree/field[@name='prodlot_id']" position="attributes">
183
 
                        <attribute name="string">Batch numbers</attribute>
184
 
                    </xpath>
185
 
                    <xpath expr="/form//field[@name='line_exist_ids']/form" position="attributes">
186
 
                        <attribute name="string">Batch number</attribute>
187
 
                    </xpath>
188
 
                    <xpath expr="/form//field[@name='line_exist_ids']/form/field[@name='prodlot_id']" position="attributes">
189
 
                        <attribute name="string">Batch number</attribute>
190
 
                    </xpath>
191
 
                </data>
192
 
            </field>
193
 
        </record>
194
 
 
195
 
        <record id="view_split_in_lots_inherit" model="ir.ui.view">
196
 
            <field name="name">Split Inventory Line</field>
197
 
            <field name="model">stock.inventory.line.split</field>
198
 
            <field name="type">form</field>
199
 
            <field name="inherit_id" ref="stock.view_split_in_lots_inherit" />
200
 
            <field name="arch" type="xml">
201
 
                <data>
202
 
 
203
 
                    <xpath expr="/form//field[@name='use_exist']" position="attributes">
204
 
                        <attribute name="string">Ues existing batches</attribute>
205
 
                    </xpath>
206
 
                    <xpath expr="/form" position="attributes">
207
 
                        <attribute name="string">Split in batches</attribute>
208
 
                    </xpath>
209
 
                    <xpath expr="/form//field[@name='line_ids']/tree" position="attributes">
210
 
                        <attribute name="string">Batch numbers</attribute>
211
 
                    </xpath>
212
 
                    <xpath expr="/form//field[@name='line_ids']/tree/field[@name='name']" position="attributes">
213
 
                        <attribute name="string">Batch numbers</attribute>
214
 
                    </xpath>
215
 
                    <xpath expr="/form//field[@name='line_ids']/form" position="attributes">
216
 
                        <attribute name="string">Batch number</attribute>
217
 
                    </xpath>
218
 
                    <xpath expr="/form//field[@name='line_ids']/form/field[@name='name']" position="attributes">
219
 
                        <attribute name="string">Batch number</attribute>
220
 
                    </xpath>
221
 
                    <xpath expr="/form//field[@name='line_exist_ids']/tree" position="attributes">
222
 
                        <attribute name="string">Batch numbers</attribute>
223
 
                    </xpath>
224
 
                    <xpath expr="/form//field[@name='line_exist_ids']/tree/field[@name='prodlot_id']" position="attributes">
225
 
                        <attribute name="string">Batch numbers</attribute>
226
 
                    </xpath>
227
 
                    <xpath expr="/form//field[@name='line_exist_ids']/form" position="attributes">
228
 
                        <attribute name="string">Batch number</attribute>
229
 
                    </xpath>
230
 
                    <xpath expr="/form//field[@name='line_exist_ids']/form/field[@name='prodlot_id']" position="attributes">
231
 
                        <attribute name="string">Batch number</attribute>
232
 
                    </xpath>
233
 
 
234
 
                </data>
235
 
            </field>
236
 
        </record>
237
 
 
238
 
        <record id="stock.track_line" model="ir.actions.act_window">
239
 
            <field name="name">Split in batches</field>
240
 
        </record>
241
 
 
242
 
        <record id="batch_view_inventory_tree" model="ir.ui.view">
243
 
            <field name="name">batch.view.inventory.tree</field>
244
 
            <field name="model">stock.inventory</field>
245
 
            <field name="type">tree</field>
246
 
            <field name="inherit_id" ref="stock.view_inventory_tree" />
247
 
            <field name="arch" type="xml">
248
 
                <xpath expr="/tree" position="attributes">
249
 
                    <attribute name="string">Batch inventory</attribute>
250
 
                </xpath>
251
 
            </field>
252
 
        </record>
253
 
        
254
 
        <record id="view_location_tree_tree" model="ir.ui.view">
255
 
            <field name="name">stock.location.tree.tree</field>
256
 
            <field name="model">stock.location</field>
257
 
            <field name="type">tree</field>
258
 
            <field name="field_parent">child_ids</field>
259
 
            <field name="arch" type="xml">
260
 
                <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'" toolbar="1" expand_button="1">
261
 
                    <field name="name"/>
262
 
                    <field name="usage"/>
263
 
                    <field name="stock_real" />
264
 
                    <field name="stock_virtual" />
265
 
                </tree>
266
 
            </field>
267
 
        </record>
268
 
 
269
 
        <record id="unifield_view_move_tree" model="ir.ui.view">
270
 
            <field name="name">unifield.view.move.tree</field>
271
 
            <field name="model">stock.move</field>
272
 
            <field name="type">tree</field>
273
 
            <field name="inherit_id" ref="stock.view_move_tree" />
274
 
            <field name="arch" type="xml">
275
 
                <xpath expr="/tree" position="attributes">
276
 
                    <attribute name="editable">top</attribute>
277
 
                    <attribute name="noteditable">1</attribute>
278
 
                    <attribute name="hide_new_button">1</attribute>
279
 
                    <attribute name="hide_delete_button">1</attribute>
280
 
                </xpath>
281
 
 
282
 
                <xpath expr="/tree//field[@name='picking_id']" position="attributes">
283
 
                    <attribute name="string">Picking Ref.</attribute>
284
 
                </xpath>
285
 
 
286
 
                <xpath expr="/tree//field[@name='tracking_id']" position="replace" />
287
 
 
288
 
                <xpath expr="/tree//button[@string='Split in production lots']" position="replace" />
289
 
                <xpath expr="/tree//button[@string='Put in current pack']" position="replace" />
290
 
                <xpath expr="/tree//button[@string='Put in a new pack']" position="replace" />
291
 
                <xpath expr="/tree//button[@string='Scrap Products']" position="replace" />
292
 
            </field>
293
 
        </record>
294
 
 
295
 
        <record id="stock.view_picking_form" model="ir.ui.view">
296
 
            <field name="name">view.picking.form</field>
297
 
            <field name="model">stock.picking</field>
298
 
            <field name="type">form</field>
299
 
            <field name="arch" type="xml">
300
 
                <form string="Internal Moves">
301
 
                    <group colspan="4" col="6">
302
 
                        <group colspan="4" col="4">
303
 
                            <field name="name" readonly="1"/>
304
 
                            <field name="origin" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
305
 
                            <field name="backorder_id" readonly="1"/>
306
 
                            <field name="reason_type_id" widget="selection"
307
 
                                   domain="[('internal_ok', '=', True)]" 
308
 
                                   attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
309
 
                            <field name="order_category"/>
310
 
                        </group>
311
 
                        <group colspan="2" col="2">
312
 
                            <field name="date" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
313
 
                            <field name="min_date" string="Expected Move Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel', 'import'])]}"
314
 
                                        on_change="change_min_date()" required="1"/>
315
 
                            <field name="min_date_manually" invisible="1" />
316
 
                       </group>
317
 
                    </group>
318
 
                    <notebook colspan="4">
319
 
                        <page string="Products">
320
 
                            <field name="from_wkf" invisible="1"/>
321
 
                            <field name="move_lines"
322
 
                                colspan="4"
323
 
                                nolabel="1"
324
 
                                widget="one2many_list"
325
 
                                default_get="{'move_line':move_lines and [move_lines[-1]] or [], 'date_expected': min_date, 'reason_type_id': reason_type_id}"
326
 
                                context="{'reason_type_id': reason_type_id, 'from_wkf': from_wkf, 'date_expected': min_date}"
327
 
                                on_change="onchange_move()"
328
 
                                >
329
 
                                <tree colors="grey:scrapped == True; red: inactive_product or to_correct_ok or expired_lot" string="Stock Moves" noteditable="fake_state=='assigned'" hide_new_button="context.get('from_wkf')" hide_delete_button="context.get('from_wkf')">
330
 
                                    <field name="line_number"/>
331
 
                                    <field name="product_id" />
332
 
                                    <field name="composition_list_id"/>
333
 
                                    <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
334
 
                                    <field name="product_uom" string="UoM"/>
335
 
                                    <field name="product_uos" invisible="1"/>
336
 
                                    <field name="scrapped" invisible="1"/>
337
 
                                    <field name="asset_id"/>
338
 
                                    <field name="prodlot_id"/>
339
 
                                    <field name="expired_date"/>
340
 
 
341
 
                                    <!--<button name="%(stock.track_line)d" string="Split in production lots" type="action" icon="terp-stock_effects-object-colorize" states="draft,waiting,confirmed,assigned"/>-->
342
 
 
343
 
                                    <field name="tracking_id"/>
344
 
                                    <field name="location_id"/>
345
 
                                    <field name="location_dest_id"/>
346
 
                                    <field name="date" string="Actual Move Date"/>
347
 
                                    <field name="state"/>
348
 
                                    <field name="fake_state" invisible="1"/>
349
 
                                    <field name="from_wkf" invisible="1" />
350
 
                                    <button name="cancel_assign" string="Cancel Availability" type="object" icon="gtk-undo" states="assigned" />
351
 
                                    <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
352
 
                                    <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
353
 
                                    <field name="lot_check"/>
354
 
                                    <field name="exp_check"/>
355
 
                                    <field name="kc_check"/>
356
 
                                    <field name="ssl_check" invisible="True"/>
357
 
                                    <field name="dg_check"/>
358
 
                                    <field name="np_check"/>
359
 
                                    <field name="expired_lot" invisible="1" />
360
 
                                    <field name="inactive_product" invisible="1" />
361
 
                                    <field name="to_correct_ok" invisible="1" />
362
 
                                    <field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
363
 
                                    <button name="call_cancel_wizard" icon="gtk-del" string="Cancel &amp; Resource" type="object" 
364
 
                                            confirm="Do you really want to delete selected record ?"
365
 
                                           attrs="{'invisible': ['|', ('from_wkf', '=', False), ('fake_state', 'in', ('cancel', 'done'))]}" />
366
 
                                </tree>
367
 
 
368
 
                                <form string="Stock Moves">
369
 
                                    <group colspan="2" col="4">
370
 
                                        <separator colspan="4" string="Move Information"/>
371
 
                                        <field name="name" invisible="1" colspan="4"/>
372
 
                                        <field name="from_wkf_line" invisible="1" />
373
 
                                        <field name="product_id"
374
 
                                            on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id, parent.type)"
375
 
                                            context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction: {'location_id': location_dest_id}, 'search_default_not_restricted': 1}"
376
 
                                            colspan="4"
377
 
                                            attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
378
 
                                            />
379
 
                                        <field name="product_qty"
380
 
                                            on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
381
 
                                            colspan="2"
382
 
                                            attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
383
 
                                            />
384
 
                                        <field name="product_uom"
385
 
                                            on_change="onchange_uom(product_uom, product_qty)"
386
 
                                            string="Unit Of Measure"
387
 
                                            colspan="2"
388
 
                                            attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
389
 
                                            domain="[('uom_by_product', '=', product_id)]"/>
390
 
                                        <field name="product_uos_qty"
391
 
                                            on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)"
392
 
                                            colspan="4"
393
 
                                            invisible="1"
394
 
                                            />
395
 
                                        <field name="product_uos"
396
 
                                            on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
397
 
                                            colspan="4"
398
 
                                            invisible="1"
399
 
                                            />
400
 
                                        <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1"/>
401
 
                                    </group>
402
 
 
403
 
                                    <group colspan="2" col="2">
404
 
                                        <separator string="Locations" colspan="2"/>
405
 
                                        <field name="location_id" 
406
 
                                            attrs="{'readonly': [('state', '=', 'assigned')]}"
407
 
                                            domain="[('internal_src', '=', product_id), ('usage', '!=', 'view'), ('id', '!=', location_dest_id)]"
408
 
                                            context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" 
409
 
                                            />
410
 
                                       <field name="location_dest_id"
411
 
                                            domain="[('internal_dest', '=', product_id), ('usage', '!=', 'view'), ('id', '!=', location_id)]" 
412
 
                                            on_change="location_dest_change(location_dest_id, location_id, product_id)"
413
 
                                            />
414
 
                                    </group>
415
 
 
416
 
                                    <group colspan="2" col="4">
417
 
                                        <separator string="Traceability" colspan="4"/>
418
 
                                        <field name="asset_id" colspan="4" />
419
 
                                        <field name="prodlot_id"
420
 
                                            context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,'search_default_real': True}"
421
 
                                            domain="[('product_id','=?',product_id), ('check_type','=', True)]"
422
 
                                            on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" 
423
 
                                            colspan="2"
424
 
                                            attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" 
425
 
                                            />
426
 
                                        <field name="hidden_batch_management_mandatory" invisible="True" />
427
 
                                        <field name="hidden_perishable_mandatory" invisible="True" />
428
 
                                        <field name="expired_date" />
429
 
                                        <group colspan="4" col="10">
430
 
                                            <field name="lot_check" />
431
 
                                            <field name="exp_check" />
432
 
                                            <field name="kc_check" />
433
 
                                            <field name="ssl_check" invisible="True" />
434
 
                                            <field name="dg_check" />
435
 
                                            <field name="np_check" />
436
 
                                        </group>
437
 
                                        <field name="reason_type_id" widget="selection"
438
 
                                               domain="[('internal_ok', '=', True)]" 
439
 
                                               attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
440
 
                                    </group>
441
 
 
442
 
                                    <group colspan="2" col="2">
443
 
                                        <separator string="Dates" colspan="2"/>
444
 
                                        <field name="create_date" invisible="1"/>
445
 
                                        <field name="date" string="Actual Move Date"/>
446
 
                                        <field name="date_expected" string="Expected Move Date"/>
447
 
                                    </group>
448
 
 
449
 
                                    <label string="" colspan="4"/>
450
 
                                    <field name="state"/>
451
 
                                    <group col="4" colspan="2">
452
 
                                        <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
453
 
                                        <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
454
 
                                        <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
455
 
                                    </group>
456
 
                                </form>
457
 
                            </field>
458
 
                            <group col="10" colspan="4">
459
 
                                <field name="state" readonly="1"/>
460
 
                                <field name="has_draft_moves" invisible="1" />
461
 
                                <!-- <button name="return_to_state" string="Return to initial state" states="import" icon="gtk-execute" type="object" />-->
462
 
                                <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
463
 
                                <button name="draft_force_assign" states="draft,confirmed,assigned" string="Confirm" type="object" icon="gtk-apply" attrs="{'invisible': ['|', '&amp;', ('state', 'in', ['done', 'cancel', 'import']), ('state', '!=', 'draft'), ('has_draft_moves', '=', False)]}" />
464
 
                                <button name="action_assign" states="confirmed,assigned" string="Check Availability" type="object" icon="gtk-find"/>
465
 
                                <button name="force_assign" states="confirmed,assigned" string="Force Availability" type="object" icon="gtk-jump-to"/>
466
 
                                <button name="change_all_location" string="Change All destinations" icon="gtk-execute" type="object" states="draft,confirmed,assigned" />
467
 
                                <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
468
 
                                <field name="certificate_donation" invisible="1"/>
469
 
                                <button name="print_certificate" string="Print certificate" type="object" icon="gtk-print" attrs="{'invisible': [('certificate_donation', '=', False)]}"/>
470
 
                                <button name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl"/>
471
 
                            </group>
472
 
                        </page>
473
 
                        <page string="Additional info">
474
 
                            <field name="auto_picking" invisible="1" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
475
 
                            <field name="date_done" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
476
 
                            <field name="move_type" invisible="1" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
477
 
                            <field name="type" invisible="1" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
478
 
                            <field name="company_id" widget="selection" invisible="1"/>
479
 
                        </page>
480
 
                        <page string="Notes">
481
 
                            <field colspan="4" name="note" nolabel="1"/>
482
 
                        </page>
483
 
                    </notebook>
484
 
                </form>
485
 
            </field>
486
 
        </record>
487
 
 
488
 
        <record id="sale.stock_picking_inherit_sale" model="ir.ui.view">
489
 
            <field name="name">stock.picking.form</field>
490
 
            <field name="model">stock.picking</field>
491
 
            <field name="type">form</field>
492
 
            <field name="inherit_id" ref="stock.view_picking_form"/>
493
 
            <field name="arch" type="xml">
494
 
                <field name="auto_picking" position="after">
495
 
                    <field name="sale_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
496
 
                </field>
497
 
            </field>
498
 
        </record>
499
 
        
500
 
        <record id="purchase.stock_picking_inherit_purchase" model="ir.ui.view">
501
 
            <field name="name">Picking list</field>
502
 
            <field name="model">stock.picking</field>
503
 
            <field name="type">form</field>
504
 
            <field name="inherit_id" ref="stock.view_picking_form"/>
505
 
            <field name="arch" type="xml">
506
 
                <field name="auto_picking" position="after">
507
 
                    <field name="purchase_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
508
 
                </field>
509
 
            </field>
510
 
        </record>
511
 
        
512
 
        <record id="stock.view_picking_in_form" model="ir.ui.view">
513
 
                <field name="name">view.picking.in.form</field>
514
 
                <field name="model">stock.picking</field>
515
 
                <field name="type">form</field>
516
 
                <field name="arch" type="xml">
517
 
                        <form string="Incoming Shipments">
518
 
                    <group colspan="4" col="6">
519
 
                        <group colspan="4" col="4">
520
 
                            <field name="name" readonly="1"/>
521
 
                            <field name="origin" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
522
 
                            <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)" required="0" attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}"/>
523
 
                            <field name="address_id" invisible="1" />
524
 
                            <field name="backorder_id" readonly="1"/>
525
 
                            <field name="reason_type_id" widget="selection"
526
 
                                   domain="[('incoming_ok', '=', True)]" 
527
 
                                   attrs="{'readonly': ['|', ('from_wkf', '=', True), ('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
528
 
                            <field name="order_category"/>
529
 
                            <field name="change_reason"/>
530
 
                        </group>
531
 
                        <group colspan="2" col="2">
532
 
                            <field name="date" string="Creation Date" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
533
 
                            <field name="min_date" string="Expected Receipt Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}"
534
 
                            on_change="change_min_date()" required="1" />
535
 
                            <field name="min_date_manually" invisible="1" />
536
 
                            <field name="warehouse_id" widget="selection" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
537
 
                            <field name="shipment_ref" />
538
 
                        </group>
539
 
                    </group>
540
 
                    <notebook colspan="4">
541
 
                        <page string="General Information">
542
 
                            <field name="from_wkf" invisible="1"/>
543
 
                            <field name="subtype" invisible="1" />
544
 
                            <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list"
545
 
                                default_get="{'purchase_id': purchase_id, 'reason_type_id': reason_type_id, 'warehouse_id': warehouse_id}"
546
 
                                context="{'subtype': subtype, 'type': 'out', 'reason_type_id': reason_type_id, 'move_line':move_lines and [move_lines[-1]] or [], 'address_in_id': address_id, 'warehouse_id': warehouse_id, 'from_wkf': from_wkf}"
547
 
                                on_change="onchange_move()"
548
 
                                >
549
 
                                <tree
550
 
                                    colors="grey:scrapped==True; red: inactive_product == True"
551
 
                                    string="Stock Moves"
552
 
                                    hide_new_button="context.get('from_wkf')"
553
 
                                    hide_delete_button="context.get('from_wkf')"
554
 
                                    >
555
 
                                    <field name="line_number"/>
556
 
                                    <field name="product_id" context="{'available_for_restriction': 'consumption', 'search_default_not_restricted': 1}" />
557
 
                                    <field name="inactive_product" invisible="1" />
558
 
                                    <field name="product_qty"/>
559
 
                                    <field name="product_uom" string="UoM"/>
560
 
                                    <field name="scrapped" invisible="1"/>
561
 
                                    <field name="asset_id"/>
562
 
                                    <field name="prodlot_id"/>
563
 
                                    <field name="expired_date"/>
564
 
                                    <field name="location_dest_id"/>
565
 
                                    <field name="date" string="Actual Receipt Date"/>
566
 
                                    <field name="state"/>
567
 
                                    <field name="fake_state" invisible="1"/>
568
 
                                    <field name="kit_check" invisible="True"/>
569
 
                                    <button name="create_composition_list" type="object" string="Create Composition List" icon="gtk-justify-fill" attrs="{'invisible': ['|', ('fake_state', '!=', 'done'), ('kit_check', '=', False)]}"/>
570
 
                                    <button name="in_action_confirm" states="draft,confirmed" string="Confirm" type="object" icon="gtk-apply"/>
571
 
                                    <field name="lot_check"/>
572
 
                                    <field name="exp_check"/>
573
 
                                    <field name="kc_check"/>
574
 
                                    <field name="ssl_check" invisible="True"/>
575
 
                                    <field name="dg_check"/>
576
 
                                    <field name="np_check"/>
577
 
                                    <field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
578
 
                                    <button name="call_cancel_wizard" type="object" string="Cancel" attrs="{'invisible': [('fake_state', 'in', ('cancel', 'done'))]}" icon="gtk-del" />
579
 
                                </tree>
580
 
                                <form string="Stock Moves">
581
 
                                    <group colspan="2" col="4">
582
 
                                        <separator colspan="4" string="Move Information"/>
583
 
                                        <field name="from_wkf_line" invisible="1" />
584
 
                                        <field name="name" invisible="1" colspan="4"/>
585
 
                                        <field name="product_id"
586
 
                                                context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"
587
 
                                                on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id, parent.type, purchase_line_id)"
588
 
                                                colspan="4"
589
 
                                                attrs="{'readonly': [('from_wkf_line', '=', True)]}"
590
 
                                                 />
591
 
                                        <field name="purchase_line_id" invisible="1"/>
592
 
                                                                <field name="change_reason" colspan="4"/>
593
 
                                                                                <field name="product_qty"
594
 
                                                                                        on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
595
 
                                                                                        attrs="{'readonly': [('from_wkf_line', '=', True)]}"
596
 
                                                                                        colspan="2"
597
 
                                                                                         />
598
 
                                        <field name="product_uom"
599
 
                                            on_change="onchange_uom(product_uom, product_qty)"
600
 
                                                string="Unit Of Measure"
601
 
                                                attrs="{'readonly': [('from_wkf_line', '=', True)]}"
602
 
                                                colspan="2"
603
 
                                                domain="[('uom_by_product', '=', product_id)]"/>
604
 
                                        <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" invisible="1"/>
605
 
                                        <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" invisible="1"/>
606
 
                                        <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
607
 
                                    </group>
608
 
 
609
 
                                    <group colspan="2" col="2">
610
 
                                        <separator string="Locations" colspan="2"/>
611
 
                                        <field name="location_id"
612
 
                                                domain="[('usage', '!=', 'view'), ('usage', '=', 'supplier'), ('id', '!=', location_dest_id)]"
613
 
                                                context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}"
614
 
                                                attrs="{'readonly': [('from_wkf_line', '=', True)]}"
615
 
                                                 />
616
 
                                                                <field name="product_type" invisible="1"/>
617
 
                                        <field name="location_dest_id"
618
 
                                            domain="[('usage', '!=', 'view'), ('incoming_dest', '=', product_id), ('id', '!=', location_id)]"
619
 
                                            on_change="location_dest_change(location_dest_id, location_id)"
620
 
                                            />
621
 
                                    <field name="move_cross_docking_ok" invisible="1"/>
622
 
                                                        </group>
623
 
                                                        
624
 
                                                        <group colspan="2" col="4">
625
 
                                        <separator string="Traceability" colspan="4"/>
626
 
                                        <field name="asset_id" colspan="4" />
627
 
                                        <field name="prodlot_id" context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory}" domain="[('product_id','=?',product_id), ('check_type','=', True)]" on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="2" attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}"/>
628
 
                                        <field name="expired_date"/>
629
 
                                        <field name="kit_check" invisible="True"/>
630
 
                                        <button name="create_composition_list" type="object" string="Create Composition List" icon="gtk-justify-fill" attrs="{'invisible': ['|', ('state', '!=', 'done'), ('kit_check', '=', False)]}"/>
631
 
                                        <field name="hidden_batch_management_mandatory" invisible="True"/>
632
 
                                        <field name="hidden_perishable_mandatory" invisible="True"/>
633
 
                                        <group colspan="4" col="10">
634
 
                                            <field name="lot_check"/>
635
 
                                            <field name="exp_check"/>
636
 
                                            <field name="kc_check"/>
637
 
                                            <field name="ssl_check" invisible="True"/>
638
 
                                            <field name="dg_check"/>
639
 
                                            <field name="np_check"/>
640
 
                                        </group>
641
 
                                        <field name="reason_type_id" widget="selection" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"
642
 
                                            domain="[('incoming_ok', '=', True)]" />
643
 
                                    </group>
644
 
 
645
 
                                    <group colspan="2" col="2">
646
 
                                        <separator string="Dates" colspan="2"/>
647
 
                                        <field name="create_date" invisible="1"/>
648
 
                                        <field name="date" string="Actual Receipt Date"/>
649
 
                                        <field name="date_expected" string="Expected Receipt Date"/>
650
 
                                    </group>
651
 
 
652
 
                                    <label string="" colspan="4"/>
653
 
                                    <field name="state"/>
654
 
                                    <group col="4" colspan="2">
655
 
                                        <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
656
 
                                        <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
657
 
                                        <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
658
 
                                    </group>
659
 
                                </form>
660
 
                            </field>
661
 
                            <group col="10" colspan="4">
662
 
                                <field name="state" readonly="1"/>
663
 
                                <button name="enter_reason"
664
 
                                    states="assigned,confirmed,draft,shipped"
665
 
                                    string="Cancel"
666
 
                                    type="object"
667
 
                                    icon="gtk-cancel"
668
 
                                    context="{'cancel_type': 'update_out'}"
669
 
                                    confirm="Warning, you are going to Cancel!"
670
 
                                    />
671
 
                                <button name="enter_reason"
672
 
                                    states="assigned,confirmed,draft,shipped"
673
 
                                    string="Cancel &amp; Resource"
674
 
                                    type="object"
675
 
                                    icon="gtk-cancel"
676
 
                                    confirm="Warning, you are going to Cancel and Resource!"
677
 
                                    />
678
 
 
679
 
                                <button name="draft_force_assign" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
680
 
                                <button name="action_assign" states="" string="Check Availability" type="object" icon="gtk-find"/>
681
 
                                <button name="force_assign" states="" string="Force Availability" type="object" icon="gtk-jump-to"/>
682
 
                                <button name="action_process" states="assigned,shipped" string="Process" type="object" icon="gtk-go-forward"/>
683
 
                                <group colspan="1" states="done">
684
 
                                    <button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
685
 
                                </group>
686
 
                                <button states="done" name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl"/>
687
 
                            </group>
688
 
                        </page>
689
 
                        <page string="Additional Info">
690
 
                            <field name="fake_type" readonly="1" />
691
 
                            <field name="type" invisible="1" />
692
 
                            <field name="attach_cert" readonly="1" attrs="{'invisible': [('certificate_donation', '=', False)]}"/>
693
 
                            <field name="company_id" widget="selection" invisible="1"/>
694
 
                        </page>
695
 
                        <page string="Notes">
696
 
                            <field colspan="4" name="note" nolabel="1"/>
697
 
                        </page>
698
 
                    </notebook>
699
 
                </form>
700
 
            </field>
701
 
        </record>
702
 
 
703
 
        <record id="stock.view_move_search" model="ir.ui.view">
704
 
            <field name="name">stock.move.search</field>
705
 
            <field name="model">stock.move</field>
706
 
            <field name="type">search</field>
707
 
            <field eval="3" name="priority"/>
708
 
            <field name="arch" type="xml">
709
 
                <search string="Stock Moves">
710
 
                    <group col="14" colspan="4">
711
 
                        <filter icon="terp-go-today" string="Today" domain="[('date','&lt;=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','&gt;=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders processed Today or planned for Today"/>
712
 
                        <separator orientation="vertical"/>
713
 
                        <filter icon="terp-dialog-close" string="Done" name="done" domain="[('state','=','done')]" help="Stock moves that have been processed"/>
714
 
                        <filter icon="terp-stock" string="Future" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
715
 
                        <filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
716
 
                        <separator orientation="vertical"/>
717
 
                        <field name="name" string="Name" />
718
 
                        <field name="origin"/>
719
 
                        <field name="address_id" string="Partner" context="{'contact_display':'partner'}" filter_domain="[('picking_id.address_id','ilike',self)]"/>
720
 
                        <field name="product_id"/>
721
 
                        <field name="location_id" string="Source Location" />
722
 
                        <field name="location_dest_id" string="Destination location" />
723
 
                                                <field name="state"/>
724
 
                    </group>
725
 
                    <newline/>
726
 
                    <group expand="0" string="Extended Filters..." colspan="4" col="8">
727
 
                            <field name="prodlot_id"/>
728
 
                    </group>
729
 
                    <newline/>
730
 
                    <group expand="0" string="Group By..." colspan="4" col="8">
731
 
                        <filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'product_id'}"/>
732
 
                        <filter string="Picking" name="groupby_picking_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'picking_id'}"/>
733
 
                        <filter string="Lot" name="groupby_prodlot_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'prodlot_id'}"/>
734
 
                        <separator orientation="vertical"/>
735
 
                        <filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}"/>
736
 
                        <filter string="Destination" name="groupby_dest_location_id" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'location_dest_id'}"/>
737
 
                        <separator orientation="vertical"/>
738
 
                        <filter icon="terp-stock_effects-object-colorize" string="State" domain="[]" context="{'group_by':'state'}" />
739
 
                        <separator orientation="vertical"/>
740
 
                        <filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
741
 
                        <filter string="Expected" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
742
 
                    </group>
743
 
                </search>
744
 
            </field>
745
 
        </record>
746
 
        
747
 
        <record id="unifield_view_inventory_filter" model="ir.ui.view">
748
 
                <field name="name">stock.inventory.filter</field>
749
 
            <field name="model">stock.inventory</field>
750
 
            <field name="type">search</field>
751
 
            <field name="inherit_id" ref="stock.view_inventory_filter" />
752
 
            <field name="arch" type="xml">
753
 
                <xpath expr="/search//field[@name='company_id']" position="replace">
754
 
                        <field name="state" />
755
 
                </xpath>
756
 
            </field>
757
 
        </record>
758
 
        
759
 
        <delete model="ir.actions.act_window" id="stock.action_view_stock_fill_inventory" />
760
 
        <delete model="ir.actions.act_window" id="stock.action_view_stock_merge_inventories" />
761
 
 
762
 
        <record id="purchase.stock_picking_in_inherit_purchase" model="ir.ui.view">
763
 
            <field name="name">Incoming Picking Inherited</field>
764
 
            <field name="model">stock.picking</field>
765
 
            <field name="type">form</field>
766
 
            <field name="inherit_id" ref="stock.view_picking_in_form"/>
767
 
            <field name="arch" type="xml">
768
 
                <field name="backorder_id" position="after">
769
 
                    <field name="purchase_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
770
 
                </field>
771
 
            </field>
772
 
        </record>
773
 
 
774
 
        <record id="stock.view_picking_out_form" model="ir.ui.view">
775
 
            <field name="name">view.picking.out.form</field>
776
 
            <field name="model">stock.picking</field>
777
 
            <field name="type">form</field>
778
 
            <field name="arch" type="xml">
779
 
                <form string="Delivery Orders">
780
 
                    <group col="6" colspan="4">
781
 
                        <group colspan="4" col="4">
782
 
                            <field name="name" readonly="1"/>
783
 
                            <field name="origin" readonly="1"/>
784
 
                            <field name="partner_id2"
785
 
                                on_change="on_change_partner(partner_id2, address_id)"
786
 
                                required="1"
787
 
                                attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}"
788
 
                                />
789
 
                            <field name="address_id"
790
 
                                attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}"
791
 
                                required="1"
792
 
                                />
793
 
                            <field name="backorder_id" readonly="1"/>
794
 
                            <field name="reason_type_id"
795
 
                                domain="[('outgoing_ok', '=', True)]"
796
 
                                widget="selection"
797
 
                                attrs="{'readonly': ['|', ('from_wkf', '=', True), ('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"
798
 
                                />
799
 
                            <field name="order_category"/>
800
 
                        </group>
801
 
                        <group colspan="2" col="2">
802
 
                            <field name="date" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
803
 
                            <field name="min_date" string="Expected Shipped Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}"
804
 
                            on_change="change_min_date()" required="1" />
805
 
                            <field name="min_date_manually" invisible="1" />    
806
 
                            <field name="warehouse_id"
807
 
                                widget="selection"
808
 
                                attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}"
809
 
                                />
810
 
                       </group>
811
 
                    </group>
812
 
                    <notebook colspan="4">
813
 
                        <page string="Products">
814
 
                            <field name="from_wkf" invisible="1"/>
815
 
                            <field name="subtype" invisible="True"/>
816
 
                            <field name="move_lines"
817
 
                                colspan="4"
818
 
                                nolabel="1"
819
 
                                widget="one2many_list"
820
 
                                default_get="{'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id, 'date_expected': min_date, 'reason_type_id': reason_type_id}"
821
 
                                context="{'subtype': subtype, 'type': 'out', 'reason_type_id': reason_type_id, 'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id, 'warehouse_id': warehouse_id, 'from_wkf': from_wkf, 'date_expected': min_date}"
822
 
                                on_change="onchange_move()"
823
 
                                >
824
 
                                <tree colors="grey:scrapped==True; red: inactive_product == True or product_tbd == True" string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="context.get('from_wkf')">
825
 
                                    <field name="line_number"/>
826
 
                                    <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/>
827
 
                                    <field name="composition_list_id"/>
828
 
                                    <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
829
 
                                    <field name="product_uom" string="UoM"/>
830
 
                                    <field name="asset_id"/>
831
 
                                    <field name="product_uos" invisible="1"/>
832
 
                                    <field name="scrapped" invisible="1"/>
833
 
                                    <field name="prodlot_id"/>
834
 
                                    <field name="expired_date"/>
835
 
 
836
 
 
837
 
                                    <!-- <button name="%(stock.track_line)d" string="Split in production lots" type="action" icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}" states="draft,assigned,confirmed"/> -->
838
 
 
839
 
 
840
 
                                    <field name="tracking_id" />
841
 
                                    <field name="location_id"/>
842
 
                                    <field name="date" string="Actual Shipped Date"/>
843
 
                                    <field name="state"/>
844
 
                                    <field name="fake_state" invisible="1"/>
845
 
                                    <button name="cancel_assign" string="Cancel Availability" type="object" icon="gtk-undo" states="assigned"/>
846
 
                                    <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
847
 
                                    <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
848
 
                                    <field name="lot_check"/>
849
 
                                    <field name="exp_check"/>
850
 
                                    <field name="kc_check"/>
851
 
                                    <field name="ssl_check" invisible="True"/>
852
 
                                    <field name="dg_check"/>
853
 
                                    <field name="np_check"/>
854
 
                                    <field name="inactive_product" invisible="1" />
855
 
                                                <field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
856
 
                                    <button name="%(stock.action_partial_move_server)d" string="Process" type="action" states="confirmed,assigned" icon="gtk-go-forward" invisible="1"/>
857
 
                                    <button name="call_cancel_wizard" type="object" string="Cancel" states="draft,assigned,confirmed" icon="gtk-del" />
858
 
                                </tree>
859
 
                                <form string="Stock Moves">
860
 
                                    <group colspan="2" col="4">
861
 
                                        <separator colspan="4" string="Move Information"/>
862
 
                                        <field name="name" invisible="1" colspan="4"/>
863
 
                                        <field name="from_wkf_line" invisible="1" />
864
 
                                        <field name="product_tbd" invisible="1" />
865
 
                                        <field name="product_id"
866
 
                                            context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" 
867
 
                                            on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id,parent.type, purchase_line_id, True)"
868
 
                                            attrs="{'readonly': ['|', '&amp;', ('from_wkf_line', '=', True), ('product_tbd', '=', False), ('state', '=', 'assigned')]}"
869
 
                                            colspan="4"
870
 
                                             />
871
 
                                        <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
872
 
                                                attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
873
 
                                                colspan="2"
874
 
                                                 />
875
 
                                        <field name="product_uom"
876
 
                                            on_change="onchange_uom(product_uom, product_qty)"
877
 
                                                string="Unit Of Measure"
878
 
                                                attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
879
 
                                                colspan="2"
880
 
                                                domain="[('uom_by_product', '=', product_id)]"
881
 
                                                 />
882
 
                                        <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" invisible="1"/>
883
 
                                        <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" invisible="1"/>
884
 
                                        <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4"  invisible="1"/>
885
 
                                        <field name="purchase_line_id" invisible="1"/>
886
 
                                    </group>
887
 
 
888
 
                                    <group colspan="2" col="2">
889
 
                                        <separator string="Locations" colspan="2"/>
890
 
                                        <field name="location_virtual_id" invisible="1"/>
891
 
                                        <field name="location_output_id" invisible="1"/>
892
 
                                        <field name="location_id"
893
 
                                            domain="[('outgoing_src', '=', product_id), ('usage', '!=', 'view'), ('id', '!=', location_dest_id)]"
894
 
                                            attrs="{'readonly': [('state', '=', 'assigned')]}"
895
 
                                            context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}"/>
896
 
                                        <field name="move_cross_docking_ok" invisible="1"/>
897
 
                                        <field name="location_dest_id"
898
 
                                                domain="[('usage', '!=', 'view'), '|', ('output_ok', '=', True), ('usage', '=', 'customer'), ('id', '!=', location_id)]"
899
 
                                                on_change="location_dest_change(location_dest_id, location_id)"
900
 
                                                attrs="{'readonly': [('from_wkf_line', '=', True)]}"
901
 
                                                 />
902
 
                                    </group>
903
 
                                    
904
 
                                    <group colspan="2" col="4">
905
 
                                        <separator string="Traceability" colspan="4"/>
906
 
                                        <field name="asset_id" colspan="4" />
907
 
                                        <field name="prodlot_id" context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,                           'search_default_real': True}" domain="[('product_id','=?',product_id), ('check_type','=', True)]" on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="2" attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}"/>
908
 
                                        <field name="expired_date"/>
909
 
                                        <field name="hidden_batch_management_mandatory" invisible="True"/>
910
 
                                        <field name="hidden_perishable_mandatory" invisible="True"/>
911
 
                                        <group colspan="4" col="10">
912
 
                                            <field name="lot_check"/>
913
 
                                            <field name="exp_check"/>
914
 
                                            <field name="kc_check"/>
915
 
                                            <field name="ssl_check" invisible="True"/>
916
 
                                            <field name="dg_check"/>
917
 
                                            <field name="np_check"/>
918
 
                                        </group>
919
 
                                        <field name="reason_type_id" widget="selection"
920
 
                                               domain="[('outgoing_ok', '=', True)]" 
921
 
                                               attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
922
 
                                    </group>
923
 
 
924
 
                                    <group colspan="2" col="2">
925
 
                                        <separator string="Dates" colspan="2"/>
926
 
                                        <field name="create_date" invisible="1"/>
927
 
                                        <field name="date" string="Actual Shipped Date"/>
928
 
                                        <field name="date_expected" string="Expected Shipped Date"/>
929
 
                                    </group>
930
 
 
931
 
                                    <label string="" colspan="4"/>
932
 
                                    <field name="state"/>
933
 
                                    <group col="4" colspan="2">
934
 
                                        <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
935
 
                                        <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
936
 
                                        <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
937
 
                                    </group>
938
 
                                </form>
939
 
                            </field>
940
 
                            <group col="12" colspan="4">
941
 
                                <field name="state" invisible="True"/>
942
 
                                <field name="delivered" invisible="True"/>
943
 
                                <field name="state_hidden"/>
944
 
                                <button name="set_delivered" icon="gtk-apply" type="object" string="Confirm Delivery" attrs="{'invisible': ['|', '|', '|', ('type', '!=', 'out'), ('subtype', '!=', 'standard'), ('state', '!=', 'done'), ('delivered', '=', True)]}"/>
945
 
                                <field name="cross_docking_ok" invisible="1"/>
946
 
                                <!--<button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>-->
947
 
                                <button name="call_cancel_wizard" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel" type="object" />
948
 
                                <button name="draft_force_assign" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
949
 
                                <button name="action_assign" states="confirmed,assigned" string="Check Availability" type="object" icon="gtk-find"/>
950
 
                                <button name="convert_to_pick" states="draft,confirmed,assigned" string="Convert to Picking Ticket" type="object" icon="gtk-convert" />
951
 
                                <button name="force_assign" states="confirmed,assigned" string="Force Availability" type="object" icon="gtk-jump-to"/>
952
 
                                <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward" help="Non available quantities will not be moved and will remain in the backorder document (unless you “force availability” if you are sure goods are available"/>
953
 
                                <field name="certificate_donation" invisible="1"/>
954
 
                                <button name="print_certificate" string="Print certificate" type="object" icon="gtk-print" attrs="{'invisible': [('certificate_donation', '=', False)]}"/>
955
 
                                <button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
956
 
                                <button name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl"/>
957
 
                            </group>
958
 
                        </page>
959
 
                        <page string="Additional info">
960
 
                            <field name="auto_picking" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" invisible="1" />
961
 
                            <field name="date_done" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" />
962
 
                            <field name="move_type" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" invisible="1" />
963
 
                            <field name="type" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" invisible="1" />
964
 
                            <field name="transport_order_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
965
 
                            <field name="company_id" widget="selection" invisible="1"/>
966
 
                        </page>
967
 
                        <page string="Notes">
968
 
                            <field colspan="4" name="note" nolabel="1"/>
969
 
                        </page>
970
 
                    </notebook>
971
 
                </form>
972
 
            </field>
973
 
        </record>
974
 
        
975
 
        <record id="sale.stock_picking_out_inherit_sale" model="ir.ui.view">
976
 
            <field name="name">Outgoing picking Inherited</field>
977
 
            <field name="model">stock.picking</field>
978
 
            <field name="type">form</field>
979
 
            <field name="inherit_id" ref="stock.view_picking_out_form"/>
980
 
            <field name="arch" type="xml">
981
 
                <field name="move_type" position="after">
982
 
                    <field name="sale_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
983
 
                </field>
984
 
            </field>
985
 
        </record>
986
 
        
987
 
        <!-- Stock inventory -->
988
 
        <record id="stock.view_inventory_form" model="ir.ui.view">
989
 
            <field name="name">stock.inventory.form</field>
990
 
            <field name="model">stock.inventory</field>
991
 
            <field name="type">form</field>
992
 
            <field name="arch" type="xml">
993
 
                <form string="Physical Inventory" hide_delete_button="1">
994
 
                    <field name="name" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
995
 
                    <field name="date" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
996
 
                    <notebook colspan="4">
997
 
                    <page string="General Informations">
998
 
                        <field colspan="4" name="inventory_line_id" nolabel="1" widget="one2many_list"  attrs="{'readonly': [('state', '!=', 'draft')]}">
999
 
                            <tree string="Products" editable="bottom" colors="red: has_problem == True">
1000
 
                                <field colspan="4" domain="[('usage','=','internal')]" name="location_id" required="True"
1001
 
                                    on_change="on_change_location_id(location_id,product_id,prod_lot_id,product_uom,parent.date)"
1002
 
                                    context="{'product_id': product_id, 'prodlot_id': prod_lot_id, 'specific_rules_tree_view': True, 'compute_child': False}" />
1003
 
                                <field context="location=location_id,uom=product_uom,to_date=parent.date,compute_child=False,available_for_restriction={'location_id': location_id},search_default_not_restricted=1" name="product_id" on_change="on_change_product_id_specific_rules(location_id,product_id,prod_lot_id,product_uom,parent.date)"  domain="[('type','not in',('service','service_recep'))]" />
1004
 
                                <field name="reason_type_id" widget="selection" domain="[('is_inventory', '=', True)]" />
1005
 
                                <field name="prod_lot_id"
1006
 
                                    on_change="change_lot(location_id,product_id,prod_lot_id,product_uom,parent.date)"
1007
 
                                    context="{'location_id':location_id, 'product_id': product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory, 'search_default_real': True}"
1008
 
                                    domain="[('check_type','=', True), ('product_id', '=?', product_id)]"
1009
 
                                    attrs="{'required': [('hidden_batch_management_mandatory', '=', True)], 'readonly': [('hidden_perishable_mandatory', '=', False), ('hidden_batch_management_mandatory', '=', False)]}" />
1010
 
                                <field name="expiry_date"
1011
 
                                    on_change="change_expiry(expiry_date, product_id, type_check)"
1012
 
                                    attrs="{'required': [('hidden_perishable_mandatory', '=', True)], 'readonly': [('hidden_perishable_mandatory', '=', False)]}" />
1013
 
                                <field name="product_qty"/>
1014
 
                                <field name="product_uom" domain="[('uom_by_product', '=', product_id)]"/>
1015
 
                                <field name="hidden_perishable_mandatory" invisible="True" />
1016
 
                                <field name="hidden_batch_management_mandatory" invisible="True" />
1017
 
                                <field name="type_check" invisible="True" />
1018
 
                                <field name="lot_check" />
1019
 
                                <field name="exp_check" />
1020
 
                                <field name="kc_check" />
1021
 
                                <field name="ssl_check" invisible="True" />
1022
 
                                <field name="dg_check" />
1023
 
                                <field name="np_check" />
1024
 
                                <field name="comment" />
1025
 
                                <field name="has_problem" invisible="True" />
1026
 
                                <button name="%(stock.action_view_stock_inventory_line_split)d"
1027
 
                                    string="Split inventory lines"
1028
 
                                    type="action" icon="terp-stock_effects-object-colorize" states="draft,confirm"/>
1029
 
                                <field name="state" invisible="True"/>
1030
 
                            </tree>
1031
 
                            <form string="Products ">
1032
 
                                <field domain="[('usage','=','internal')]" name="location_id"/>
1033
 
                                <newline/>
1034
 
                                <field context="location=location_id,uom=product_uom,to_date=parent.date" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom,parent.date)"  domain="[('type','&lt;&gt;','service')]"/>
1035
 
                                <field name="product_qty"/>
1036
 
                                <field name="product_uom"/>
1037
 
                                <group colspan="2" col="4">
1038
 
                                <field name="prod_lot_id" />
1039
 
                                    <button name="%(stock.action_view_stock_inventory_line_split)d"
1040
 
                                        string="Split inventory lines"
1041
 
                                        type="action" icon="terp-stock_effects-object-colorize"/>
1042
 
                                </group>
1043
 
                            </form>
1044
 
                        </field>
1045
 
                    </page>
1046
 
                    <page string="Posted Inventory">
1047
 
                             <field colspan="2" name="move_ids" nolabel="1" widget="one2many_list" context="{'inventory_id':active_id}"  attrs="{'readonly': [('state', '!=', 'draft')]}">
1048
 
                                <tree string="Stock Moves">
1049
 
                                    <field name="product_id"/>
1050
 
                                    <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1051
 
                                    <field name="product_uom" string="UoM"/>
1052
 
                                    <field name="prodlot_id" />
1053
 
                                    <field name="reason_type_id" widget="selection" domain="[('is_inventory', '=', True)]" />
1054
 
                                     <button name="%(stock.track_line)d" string="Split in production" type="action"
1055
 
                                        icon="terp-stock_effects-object-colorize"
1056
 
                                        attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
1057
 
                                        states="draft,done,cancel"
1058
 
                                        context="{'inventory_id':parent.id}" />
1059
 
                                     <field name="tracking_id"/>
1060
 
                                     <button name="%(stock.split_into)d" string="Put in a new pack" type="action"
1061
 
                                        icon="terp-stock_effects-object-colorize"
1062
 
                                        context="{'inventory_id':parent.id}"
1063
 
                                        states="draft,done,cancel"/>
1064
 
                                    <field name="location_id"/>
1065
 
                                    <field name="location_dest_id"/>
1066
 
                                    <field name="date" string="Date"/>
1067
 
                                    <field name="state"  invisible="True"/>
1068
 
                                </tree>
1069
 
                             </field>
1070
 
                    </page>
1071
 
                    </notebook>
1072
 
                    <group col="2" colspan="2">
1073
 
                     <field name="state"/>
1074
 
                    </group>
1075
 
                    <group col="3" colspan="2">
1076
 
                        <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
1077
 
                        <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>
1078
 
                        <button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to"/>
1079
 
                        <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
1080
 
                    </group>
1081
 
                </form>
1082
 
            </field>
1083
 
        </record>
1084
 
 
1085
 
        <!-- Remove 'Update' button on product form -->
1086
 
        <record id="product_form_remove_update_button" model="ir.ui.view">
1087
 
            <field name="name">product.form.remove.update.button</field>
1088
 
            <field name="model">product.product</field>
1089
 
            <field name="priority">2</field>
1090
 
            <field name="type">form</field>
1091
 
            <field name="inherit_id" ref="stock.view_product_standard_price_form" />
1092
 
            <field name="arch" type="xml">
1093
 
                <xpath expr="//button[@string='Update']" position="replace" />
1094
 
            </field>
1095
 
        </record>
1096
 
 
1097
 
        <record id="stock_picking_cancel_wizard" model="ir.ui.view">
1098
 
            <field name="name">stock.picking.cancel.wizard</field>
1099
 
            <field name="model">stock.picking.cancel.wizard</field>
1100
 
            <field name="type">form</field>
1101
 
            <field name="arch" type="xml">
1102
 
                <form string="Cancel Picking">
1103
 
                    <group colspan="4" col="1">                                 
1104
 
                        <html>
1105
 
                            <h4 style="text-align: center; margin: 10px">If you click on 'Cancel &amp; Resource' button, all lines of this delivery OUT attached to a Field order or an Internal Request will be re-sourced. All lines or quantities already processed wouldn't be re-sourced.</h4>
1106
 
                        </html>
1107
 
                    </group>
1108
 
                    <newline />
1109
 
                    <separator string="Actions" />
1110
 
                    <button name="just_cancel" string="Cancel only" type="object" icon="gtk-cancel" colspan="2" />
1111
 
                    <button name="cancel_and_resource" string="Cancel &amp; Resource" type="object" icon="gtk-cancel" colspan="2" />
1112
 
                </form>
1113
 
            </field>
1114
 
        </record>
1115
 
 
1116
 
        <record id="stock_move_cancel_wizard_form_view" model="ir.ui.view">
1117
 
            <field name="name">stock.move.cancel.wizard.form.view</field>
1118
 
            <field name="model">stock.move.cancel.wizard</field>
1119
 
            <field name="type">form</field>
1120
 
            <field name="arch" type="xml">
1121
 
                <form string="Cancel move">
1122
 
                    <group colspan="4" col="1">
1123
 
                        <html>
1124
 
                            <h4 style="text-align: center; margin: 10px">Would you re-source the need sourced by this stock move ?</h4>
1125
 
                        </html>
1126
 
                    </group>
1127
 
                    <newline />
1128
 
                    <separator string="Actions" colspan="4" />
1129
 
                    <button name="just_cancel" string="No" type="object" icon="gtk-execute" colspan="2" />
1130
 
                    <button name="cancel_and_resource" string="Yes" type="object" icon="gtk-execute" colspan="2" />
1131
 
                </form>
1132
 
            </field>
1133
 
        </record>
1134
 
 
1135
 
    </data>
1136
 
</openerp>