1
<?xml version="1.0" encoding="utf-8" ?>
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">
12
<xpath expr="/form//field[@name='chained_location_type']" position="attributes">
13
<attribute name="on_change">on_change_location_type(chained_location_type)</attribute>
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')]" />
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>
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>
52
<xpath expr="/form//field[@name='partner_id2']" position="attributes">
53
<attribute name="domain">[('customer', '=', True)]</attribute>
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>
67
<xpath expr="/form//field[@name='product_qty']" position="attributes">
68
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
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>
74
<xpath expr="/form//field[@name='location_id']" position="attributes">
75
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
77
<xpath expr="/form//field[@name='location_dest_id']" position="attributes">
78
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
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'])]}" />
85
<xpath expr="/form//field[@name='picking_id']" position="attributes">
86
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
88
<xpath expr="/form//field[@name='tracking_id']" position="attributes">
89
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
91
<xpath expr="/form//field[@name='date_expected']" position="attributes">
92
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
94
<xpath expr="/form//field[@name='name']" position="attributes">
95
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
97
<xpath expr="/form//button[@string='New pack']" position="attributes">
98
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
100
<xpath expr="/form//button[@string='Split']" position="attributes">
101
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
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>
115
<xpath expr="/form//field[@name='product_qty']" position="attributes">
116
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
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>
122
<xpath expr="/form//field[@name='location_id']" position="attributes">
123
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
125
<xpath expr="/form//field[@name='location_dest_id']" position="attributes">
126
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
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'])]}" />
133
<xpath expr="/form//field[@name='picking_id']" position="attributes">
134
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
136
<xpath expr="/form//field[@name='tracking_id']" position="attributes">
137
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
139
<xpath expr="/form//field[@name='date_expected']" position="attributes">
140
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
142
<xpath expr="/form//field[@name='name']" position="attributes">
143
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
145
<xpath expr="/form//button[@string='New pack']" position="attributes">
146
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
148
<xpath expr="/form//button[@string='Split']" position="attributes">
149
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}</attribute>
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">
161
<xpath expr="/form//field[@name='use_exist']" position="attributes">
162
<attribute name="string">Ues existing batches</attribute>
164
<xpath expr="/form" position="attributes">
165
<attribute name="string">Split in batches</attribute>
167
<xpath expr="/form//field[@name='line_ids']/tree" position="attributes">
168
<attribute name="string">Batch numbers</attribute>
170
<xpath expr="/form//field[@name='line_ids']/tree/field[@name='name']" position="attributes">
171
<attribute name="string">Batch numbers</attribute>
173
<xpath expr="/form//field[@name='line_ids']/form" position="attributes">
174
<attribute name="string">Batch number</attribute>
176
<xpath expr="/form//field[@name='line_ids']/form/field[@name='name']" position="attributes">
177
<attribute name="string">Batch number</attribute>
179
<xpath expr="/form//field[@name='line_exist_ids']/tree" position="attributes">
180
<attribute name="string">Batch numbers</attribute>
182
<xpath expr="/form//field[@name='line_exist_ids']/tree/field[@name='prodlot_id']" position="attributes">
183
<attribute name="string">Batch numbers</attribute>
185
<xpath expr="/form//field[@name='line_exist_ids']/form" position="attributes">
186
<attribute name="string">Batch number</attribute>
188
<xpath expr="/form//field[@name='line_exist_ids']/form/field[@name='prodlot_id']" position="attributes">
189
<attribute name="string">Batch number</attribute>
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">
203
<xpath expr="/form//field[@name='use_exist']" position="attributes">
204
<attribute name="string">Ues existing batches</attribute>
206
<xpath expr="/form" position="attributes">
207
<attribute name="string">Split in batches</attribute>
209
<xpath expr="/form//field[@name='line_ids']/tree" position="attributes">
210
<attribute name="string">Batch numbers</attribute>
212
<xpath expr="/form//field[@name='line_ids']/tree/field[@name='name']" position="attributes">
213
<attribute name="string">Batch numbers</attribute>
215
<xpath expr="/form//field[@name='line_ids']/form" position="attributes">
216
<attribute name="string">Batch number</attribute>
218
<xpath expr="/form//field[@name='line_ids']/form/field[@name='name']" position="attributes">
219
<attribute name="string">Batch number</attribute>
221
<xpath expr="/form//field[@name='line_exist_ids']/tree" position="attributes">
222
<attribute name="string">Batch numbers</attribute>
224
<xpath expr="/form//field[@name='line_exist_ids']/tree/field[@name='prodlot_id']" position="attributes">
225
<attribute name="string">Batch numbers</attribute>
227
<xpath expr="/form//field[@name='line_exist_ids']/form" position="attributes">
228
<attribute name="string">Batch number</attribute>
230
<xpath expr="/form//field[@name='line_exist_ids']/form/field[@name='prodlot_id']" position="attributes">
231
<attribute name="string">Batch number</attribute>
238
<record id="stock.track_line" model="ir.actions.act_window">
239
<field name="name">Split in batches</field>
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>
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">
262
<field name="usage"/>
263
<field name="stock_real" />
264
<field name="stock_virtual" />
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>
282
<xpath expr="/tree//field[@name='picking_id']" position="attributes">
283
<attribute name="string">Picking Ref.</attribute>
286
<xpath expr="/tree//field[@name='tracking_id']" position="replace" />
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" />
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"/>
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" />
318
<notebook colspan="4">
319
<page string="Products">
320
<field name="from_wkf" invisible="1"/>
321
<field name="move_lines"
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()"
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"/>
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"/>-->
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 & Resource" type="object"
364
confirm="Do you really want to delete selected record ?"
365
attrs="{'invisible': ['|', ('from_wkf', '=', False), ('fake_state', 'in', ('cancel', 'done'))]}" />
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}"
377
attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
379
<field name="product_qty"
380
on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
382
attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
384
<field name="product_uom"
385
on_change="onchange_uom(product_uom, product_qty)"
386
string="Unit Of Measure"
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)"
395
<field name="product_uos"
396
on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
400
<field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1"/>
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}"
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)"
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)"
424
attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}"
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" />
437
<field name="reason_type_id" widget="selection"
438
domain="[('internal_ok', '=', True)]"
439
attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
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"/>
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"/>
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="call_cancel_wizard" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel" type="object" />
463
<button name="draft_force_assign" states="draft,confirmed,assigned" string="Confirm" type="object" icon="gtk-apply" attrs="{'invisible': ['|', '&', ('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','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl"/>
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"/>
480
<page string="Notes">
481
<field colspan="4" name="note" nolabel="1"/>
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'])]}"/>
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'])]}"/>
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"/>
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" />
540
<field name="is_esc" invisible="1" />
541
<group colspan="4" string="IN export" attrs="{'invisible': [('state', 'in', ('cancel', 'done'))]}">
542
<field name="filetype" />
543
<button name="export_template_file" colspan="2" string="Export file" type="object" icon="gtk-print" />
545
<notebook colspan="4">
546
<page string="General Information">
547
<field name="from_wkf" invisible="1"/>
548
<field name="subtype" invisible="1" />
549
<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list"
550
default_get="{'purchase_id': purchase_id, 'reason_type_id': reason_type_id, 'warehouse_id': warehouse_id}"
551
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}"
552
on_change="onchange_move()"
555
colors="grey:scrapped==True; red: inactive_product == True"
557
hide_new_button="context.get('from_wkf')"
558
hide_delete_button="context.get('from_wkf')"
560
<field name="line_number"/>
561
<field name="product_id" context="{'available_for_restriction': 'consumption', 'search_default_not_restricted': 1}" />
562
<field name="inactive_product" invisible="1" />
563
<field name="product_qty"/>
564
<field name="product_uom" string="UoM"/>
565
<field name="scrapped" invisible="1"/>
566
<field name="asset_id"/>
567
<field name="prodlot_id"/>
568
<field name="expired_date"/>
569
<field name="location_dest_id"/>
570
<field name="date" string="Actual Receipt Date"/>
571
<field name="state"/>
572
<field name="fake_state" invisible="1"/>
573
<field name="kit_check" invisible="True"/>
574
<button name="create_composition_list" type="object" string="Create Composition List" icon="gtk-justify-fill" attrs="{'invisible': ['|', ('fake_state', '!=', 'done'), ('kit_check', '=', False)]}"/>
575
<button name="in_action_confirm" states="draft,confirmed" string="Confirm" type="object" icon="gtk-apply"/>
576
<field name="lot_check"/>
577
<field name="exp_check"/>
578
<field name="kc_check"/>
579
<field name="ssl_check" invisible="True"/>
580
<field name="dg_check"/>
581
<field name="np_check"/>
582
<field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
583
<button name="call_cancel_wizard" type="object" string="Cancel" attrs="{'invisible': [('fake_state', 'in', ('cancel', 'done'))]}" icon="gtk-del" />
585
<form string="Stock Moves">
586
<group colspan="2" col="4">
587
<separator colspan="4" string="Move Information"/>
588
<field name="from_wkf_line" invisible="1" />
589
<field name="name" invisible="1" colspan="4"/>
590
<field name="product_id"
591
context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"
592
on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id, parent.type, purchase_line_id)"
594
attrs="{'readonly': [('from_wkf_line', '=', True)]}"
596
<field name="purchase_line_id" invisible="1"/>
597
<field name="change_reason" colspan="4"/>
598
<field name="product_qty"
599
on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
600
attrs="{'readonly': [('from_wkf_line', '=', True)]}"
603
<field name="product_uom"
604
on_change="onchange_uom(product_uom, product_qty)"
605
string="Unit Of Measure"
606
attrs="{'readonly': [('from_wkf_line', '=', True)]}"
608
domain="[('uom_by_product', '=', product_id)]"/>
609
<field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" invisible="1"/>
610
<field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" invisible="1"/>
611
<field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
614
<group colspan="2" col="2">
615
<separator string="Locations" colspan="2"/>
616
<field name="location_id"
617
domain="[('usage', '!=', 'view'), ('usage', '=', 'supplier'), ('id', '!=', location_dest_id)]"
618
context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}"
619
attrs="{'readonly': [('from_wkf_line', '=', True)]}"
621
<field name="product_type" invisible="1"/>
622
<field name="location_dest_id"
623
domain="[('usage', '!=', 'view'), ('incoming_dest', '=', product_id), ('id', '!=', location_id)]"
624
on_change="location_dest_change(location_dest_id, location_id)"
626
<field name="move_cross_docking_ok" invisible="1"/>
629
<group colspan="2" col="4">
630
<separator string="Traceability" colspan="4"/>
631
<field name="asset_id" colspan="4" />
632
<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)]}"/>
633
<field name="expired_date"/>
634
<field name="kit_check" invisible="True"/>
635
<button name="create_composition_list" type="object" string="Create Composition List" icon="gtk-justify-fill" attrs="{'invisible': ['|', ('state', '!=', 'done'), ('kit_check', '=', False)]}"/>
636
<field name="hidden_batch_management_mandatory" invisible="True"/>
637
<field name="hidden_perishable_mandatory" invisible="True"/>
638
<group colspan="4" col="10">
639
<field name="lot_check"/>
640
<field name="exp_check"/>
641
<field name="kc_check"/>
642
<field name="ssl_check" invisible="True"/>
643
<field name="dg_check"/>
644
<field name="np_check"/>
646
<field name="reason_type_id" widget="selection" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"
647
domain="[('incoming_ok', '=', True)]" />
650
<group colspan="2" col="2">
651
<separator string="Dates" colspan="2"/>
652
<field name="create_date" invisible="1"/>
653
<field name="date" string="Actual Receipt Date"/>
654
<field name="date_expected" string="Expected Receipt Date"/>
657
<label string="" colspan="4"/>
658
<field name="state"/>
659
<group col="4" colspan="2">
660
<button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
661
<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
662
<button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
666
<group col="10" colspan="4">
667
<field name="state" readonly="1"/>
668
<button name="enter_reason"
669
states="assigned,confirmed,draft,shipped"
673
context="{'cancel_type': 'update_out'}"
674
confirm="Warning, you are going to Cancel!"
676
<button name="enter_reason"
677
states="assigned,confirmed,draft,shipped"
678
string="Cancel & Resource"
681
confirm="Warning, you are going to Cancel and Resource!"
684
<button name="draft_force_assign" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
685
<button name="action_assign" states="" string="Check Availability" type="object" icon="gtk-find"/>
686
<button name="force_assign" states="" string="Force Availability" type="object" icon="gtk-jump-to"/>
688
To go to simulation screen, click on Process then Simulate button on the opened wizard
689
<button name="go_to_simulation_screen" states="assigned,shipped" string="Simulate" type="object" icon="gtk-execute" attrs="{'invisible': [('is_esc', '=', False)]}" />-->
690
<button name="action_process" states="assigned,shipped" string="Process" type="object" icon="gtk-go-forward"/>
691
<group colspan="1" states="done">
692
<button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
694
<button states="done" name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl"/>
697
<page string="Additional Info">
698
<field name="fake_type" readonly="1" />
699
<field name="type" invisible="1" />
700
<field name="attach_cert" readonly="1" attrs="{'invisible': [('certificate_donation', '=', False)]}"/>
701
<field name="company_id" widget="selection" invisible="1"/>
703
<page string="Notes">
704
<field name="last_imported_filename" invisible="0" readonly="1" />
705
<field colspan="4" name="note" nolabel="1"/>
712
<record id="stock.view_move_search" model="ir.ui.view">
713
<field name="name">stock.move.search</field>
714
<field name="model">stock.move</field>
715
<field name="type">search</field>
716
<field eval="3" name="priority"/>
717
<field name="arch" type="xml">
718
<search string="Stock Moves">
719
<group col="14" colspan="4">
720
<filter icon="terp-go-today" string="Today" domain="[('date','<=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','>=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders processed Today or planned for Today"/>
721
<separator orientation="vertical"/>
722
<filter icon="terp-dialog-close" string="Done" name="done" domain="[('state','=','done')]" help="Stock moves that have been processed"/>
723
<filter icon="terp-stock" string="Future" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
724
<filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
725
<separator orientation="vertical"/>
726
<field name="name" string="Name" />
727
<field name="origin"/>
728
<field name="address_id" string="Partner" context="{'contact_display':'partner'}" filter_domain="[('picking_id.address_id','ilike',self)]"/>
729
<field name="product_id"/>
730
<field name="location_id" string="Source Location" />
731
<field name="location_dest_id" string="Destination location" />
732
<field name="state"/>
735
<group expand="0" string="Extended Filters..." colspan="4" col="8">
736
<field name="prodlot_id"/>
739
<group expand="0" string="Group By..." colspan="4" col="8">
740
<filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
741
<filter string="Picking" name="groupby_picking_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'picking_id'}"/>
742
<filter string="Lot" name="groupby_prodlot_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'prodlot_id'}"/>
743
<separator orientation="vertical"/>
744
<filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}"/>
745
<filter string="Destination" name="groupby_dest_location_id" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'location_dest_id'}"/>
746
<separator orientation="vertical"/>
747
<filter icon="terp-stock_effects-object-colorize" string="State" domain="[]" context="{'group_by':'state'}" />
748
<separator orientation="vertical"/>
749
<filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
750
<filter string="Expected" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
756
<record id="unifield_view_inventory_filter" model="ir.ui.view">
757
<field name="name">stock.inventory.filter</field>
758
<field name="model">stock.inventory</field>
759
<field name="type">search</field>
760
<field name="inherit_id" ref="stock.view_inventory_filter" />
761
<field name="arch" type="xml">
762
<xpath expr="/search//field[@name='company_id']" position="replace">
763
<field name="state" />
768
<delete model="ir.actions.act_window" id="stock.action_view_stock_fill_inventory" />
769
<delete model="ir.actions.act_window" id="stock.action_view_stock_merge_inventories" />
771
<record id="purchase.stock_picking_in_inherit_purchase" model="ir.ui.view">
772
<field name="name">Incoming Picking Inherited</field>
773
<field name="model">stock.picking</field>
774
<field name="type">form</field>
775
<field name="inherit_id" ref="stock.view_picking_in_form"/>
776
<field name="arch" type="xml">
777
<field name="backorder_id" position="after">
778
<field name="purchase_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
783
<record id="stock.view_picking_out_form" model="ir.ui.view">
784
<field name="name">view.picking.out.form</field>
785
<field name="model">stock.picking</field>
786
<field name="type">form</field>
787
<field name="arch" type="xml">
788
<form string="Delivery Orders">
789
<group col="6" colspan="4">
790
<group colspan="4" col="4">
791
<field name="name" readonly="1"/>
792
<field name="origin" readonly="1"/>
793
<field name="partner_id2"
794
on_change="on_change_partner(partner_id2, address_id)"
796
attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}"
798
<field name="address_id"
799
attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}"
802
<field name="backorder_id" readonly="1"/>
803
<field name="reason_type_id"
804
domain="[('outgoing_ok', '=', True)]"
806
attrs="{'readonly': ['|', ('from_wkf', '=', True), ('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"
808
<field name="order_category"/>
810
<group colspan="2" col="2">
811
<field name="date" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
812
<field name="min_date" string="Expected Shipped Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}"
813
on_change="change_min_date()" required="1" />
814
<field name="min_date_manually" invisible="1" />
815
<field name="warehouse_id"
817
attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}"
821
<notebook colspan="4">
822
<page string="Products">
823
<field name="from_wkf" invisible="1"/>
824
<field name="subtype" invisible="True"/>
825
<field name="move_lines"
828
widget="one2many_list"
829
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}"
830
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}"
831
on_change="onchange_move()"
833
<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')">
834
<field name="line_number"/>
835
<field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/>
836
<field name="composition_list_id"/>
837
<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
838
<field name="product_uom" string="UoM"/>
839
<field name="asset_id"/>
840
<field name="product_uos" invisible="1"/>
841
<field name="scrapped" invisible="1"/>
842
<field name="prodlot_id"/>
843
<field name="expired_date"/>
846
<!-- <button name="%(stock.track_line)d" string="Split in production lots" type="action" icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}" states="draft,assigned,confirmed"/> -->
849
<field name="tracking_id" />
850
<field name="location_id"/>
851
<field name="date" string="Actual Shipped Date"/>
852
<field name="state"/>
853
<field name="fake_state" invisible="1"/>
854
<button name="cancel_assign" string="Cancel Availability" type="object" icon="gtk-undo" states="assigned"/>
855
<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
856
<button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
857
<field name="lot_check"/>
858
<field name="exp_check"/>
859
<field name="kc_check"/>
860
<field name="ssl_check" invisible="True"/>
861
<field name="dg_check"/>
862
<field name="np_check"/>
863
<field name="inactive_product" invisible="1" />
864
<field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
865
<button name="%(stock.action_partial_move_server)d" string="Process" type="action" states="confirmed,assigned" icon="gtk-go-forward" invisible="1"/>
866
<button name="call_cancel_wizard" type="object" string="Cancel" states="draft,assigned,confirmed" icon="gtk-del" />
868
<form string="Stock Moves">
869
<group colspan="2" col="4">
870
<separator colspan="4" string="Move Information"/>
871
<field name="name" invisible="1" colspan="4"/>
872
<field name="from_wkf_line" invisible="1" />
873
<field name="product_tbd" invisible="1" />
874
<field name="product_id"
875
context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"
876
on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id,parent.type, purchase_line_id, True)"
877
attrs="{'readonly': ['|', '&', ('from_wkf_line', '=', True), ('product_tbd', '=', False), ('state', '=', 'assigned')]}"
880
<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
881
attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
884
<field name="product_uom"
885
on_change="onchange_uom(product_uom, product_qty)"
886
string="Unit Of Measure"
887
attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
889
domain="[('uom_by_product', '=', product_id)]"
891
<field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" invisible="1"/>
892
<field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" invisible="1"/>
893
<field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1"/>
894
<field name="purchase_line_id" invisible="1"/>
897
<group colspan="2" col="2">
898
<separator string="Locations" colspan="2"/>
899
<field name="location_virtual_id" invisible="1"/>
900
<field name="location_output_id" invisible="1"/>
901
<field name="location_id"
902
domain="[('outgoing_src', '=', product_id), ('usage', '!=', 'view'), ('id', '!=', location_dest_id)]"
903
attrs="{'readonly': [('state', '=', 'assigned')]}"
904
context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}"/>
905
<field name="move_cross_docking_ok" invisible="1"/>
906
<field name="location_dest_id"
907
domain="[('usage', '!=', 'view'), '|', ('output_ok', '=', True), ('usage', '=', 'customer'), ('id', '!=', location_id)]"
908
on_change="location_dest_change(location_dest_id, location_id)"
909
attrs="{'readonly': [('from_wkf_line', '=', True)]}"
913
<group colspan="2" col="4">
914
<separator string="Traceability" colspan="4"/>
915
<field name="asset_id" colspan="4" />
916
<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)]}"/>
917
<field name="expired_date"/>
918
<field name="hidden_batch_management_mandatory" invisible="True"/>
919
<field name="hidden_perishable_mandatory" invisible="True"/>
920
<group colspan="4" col="10">
921
<field name="lot_check"/>
922
<field name="exp_check"/>
923
<field name="kc_check"/>
924
<field name="ssl_check" invisible="True"/>
925
<field name="dg_check"/>
926
<field name="np_check"/>
928
<field name="reason_type_id" widget="selection"
929
domain="[('outgoing_ok', '=', True)]"
930
attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
933
<group colspan="2" col="2">
934
<separator string="Dates" colspan="2"/>
935
<field name="create_date" invisible="1"/>
936
<field name="date" string="Actual Shipped Date"/>
937
<field name="date_expected" string="Expected Shipped Date"/>
940
<label string="" colspan="4"/>
941
<field name="state"/>
942
<group col="4" colspan="2">
943
<button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
944
<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
945
<button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
949
<group col="12" colspan="4">
950
<field name="state" invisible="True"/>
951
<field name="delivered" invisible="True"/>
952
<field name="state_hidden"/>
953
<button name="set_delivered" icon="gtk-apply" type="object" string="Confirm Delivery" attrs="{'invisible': ['|', '|', '|', ('type', '!=', 'out'), ('subtype', '!=', 'standard'), ('state', '!=', 'done'), ('delivered', '=', True)]}"/>
954
<field name="cross_docking_ok" invisible="1"/>
955
<!--<button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>-->
956
<button name="call_cancel_wizard" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel" type="object" />
957
<button name="draft_force_assign" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
958
<button name="action_assign" states="confirmed,assigned" string="Check Availability" type="object" icon="gtk-find"/>
959
<button name="convert_to_pick" states="draft,confirmed,assigned" string="Convert to Picking Ticket" type="object" icon="gtk-convert" />
960
<button name="force_assign" states="confirmed,assigned" string="Force Availability" type="object" icon="gtk-jump-to"/>
961
<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"/>
962
<field name="certificate_donation" invisible="1"/>
963
<button name="print_certificate" string="Print certificate" type="object" icon="gtk-print" attrs="{'invisible': [('certificate_donation', '=', False)]}"/>
964
<button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
965
<button name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl"/>
968
<page string="Additional info">
969
<field name="auto_picking" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" invisible="1" />
970
<field name="date_done" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" />
971
<field name="move_type" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" invisible="1" />
972
<field name="type" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" invisible="1" />
973
<field name="transport_order_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
974
<field name="company_id" widget="selection" invisible="1"/>
976
<page string="Notes">
977
<field colspan="4" name="note" nolabel="1"/>
984
<record id="sale.stock_picking_out_inherit_sale" model="ir.ui.view">
985
<field name="name">Outgoing picking Inherited</field>
986
<field name="model">stock.picking</field>
987
<field name="type">form</field>
988
<field name="inherit_id" ref="stock.view_picking_out_form"/>
989
<field name="arch" type="xml">
990
<field name="move_type" position="after">
991
<field name="sale_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/>
996
<!-- Stock inventory -->
997
<record id="stock.view_inventory_form" model="ir.ui.view">
998
<field name="name">stock.inventory.form</field>
999
<field name="model">stock.inventory</field>
1000
<field name="type">form</field>
1001
<field name="arch" type="xml">
1002
<form string="Physical Inventory" hide_delete_button="1">
1003
<field name="name" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
1004
<field name="date" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
1005
<notebook colspan="4">
1006
<page string="General Informations">
1007
<field colspan="4" name="inventory_line_id" nolabel="1" widget="one2many_list" attrs="{'readonly': [('state', '!=', 'draft')]}">
1008
<tree string="Products" editable="bottom" colors="red: has_problem == True">
1009
<field colspan="4" domain="[('usage','=','internal')]" name="location_id" required="True"
1010
on_change="on_change_location_id(location_id,product_id,prod_lot_id,product_uom,parent.date)"
1011
context="{'product_id': product_id, 'prodlot_id': prod_lot_id, 'specific_rules_tree_view': True, 'compute_child': False}" />
1012
<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'))]" />
1013
<field name="reason_type_id" widget="selection" domain="[('is_inventory', '=', True)]" />
1014
<field name="prod_lot_id"
1015
on_change="change_lot(location_id,product_id,prod_lot_id,product_uom,parent.date)"
1016
context="{'location_id':location_id, 'product_id': product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory, 'search_default_real': True}"
1017
domain="[('check_type','=', True), ('product_id', '=?', product_id)]"
1018
attrs="{'required': [('hidden_batch_management_mandatory', '=', True)], 'readonly': [('hidden_perishable_mandatory', '=', False), ('hidden_batch_management_mandatory', '=', False)]}" />
1019
<field name="expiry_date"
1020
on_change="change_expiry(expiry_date, product_id, type_check)"
1021
attrs="{'required': [('hidden_perishable_mandatory', '=', True)], 'readonly': [('hidden_perishable_mandatory', '=', False)]}" />
1022
<field name="product_qty"/>
1023
<field name="product_uom" domain="[('uom_by_product', '=', product_id)]"/>
1024
<field name="hidden_perishable_mandatory" invisible="True" />
1025
<field name="hidden_batch_management_mandatory" invisible="True" />
1026
<field name="type_check" invisible="True" />
1027
<field name="lot_check" />
1028
<field name="exp_check" />
1029
<field name="kc_check" />
1030
<field name="ssl_check" invisible="True" />
1031
<field name="dg_check" />
1032
<field name="np_check" />
1033
<field name="comment" />
1034
<field name="has_problem" invisible="True" />
1035
<button name="%(stock.action_view_stock_inventory_line_split)d"
1036
string="Split inventory lines"
1037
type="action" icon="terp-stock_effects-object-colorize" states="draft,confirm"/>
1038
<field name="state" invisible="True"/>
1040
<form string="Products ">
1041
<field domain="[('usage','=','internal')]" name="location_id"/>
1043
<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','<>','service')]"/>
1044
<field name="product_qty"/>
1045
<field name="product_uom"/>
1046
<group colspan="2" col="4">
1047
<field name="prod_lot_id" />
1048
<button name="%(stock.action_view_stock_inventory_line_split)d"
1049
string="Split inventory lines"
1050
type="action" icon="terp-stock_effects-object-colorize"/>
1055
<page string="Posted Inventory">
1056
<field colspan="2" name="move_ids" nolabel="1" widget="one2many_list" context="{'inventory_id':active_id}" attrs="{'readonly': [('state', '!=', 'draft')]}">
1057
<tree string="Stock Moves">
1058
<field name="product_id"/>
1059
<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1060
<field name="product_uom" string="UoM"/>
1061
<field name="prodlot_id" />
1062
<field name="reason_type_id" widget="selection" domain="[('is_inventory', '=', True)]" />
1063
<button name="%(stock.track_line)d" string="Split in production" type="action"
1064
icon="terp-stock_effects-object-colorize"
1065
attrs="{'invisible': [('prodlot_id','<>',False)]}"
1066
states="draft,done,cancel"
1067
context="{'inventory_id':parent.id}" />
1068
<field name="tracking_id"/>
1069
<button name="%(stock.split_into)d" string="Put in a new pack" type="action"
1070
icon="terp-stock_effects-object-colorize"
1071
context="{'inventory_id':parent.id}"
1072
states="draft,done,cancel"/>
1073
<field name="location_id"/>
1074
<field name="location_dest_id"/>
1075
<field name="date" string="Date"/>
1076
<field name="state" invisible="True"/>
1081
<group col="2" colspan="2">
1082
<field name="state"/>
1084
<group col="3" colspan="2">
1085
<button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
1086
<button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>
1087
<button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to"/>
1088
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
1094
<!-- Remove 'Update' button on product form -->
1095
<record id="product_form_remove_update_button" model="ir.ui.view">
1096
<field name="name">product.form.remove.update.button</field>
1097
<field name="model">product.product</field>
1098
<field name="priority">2</field>
1099
<field name="type">form</field>
1100
<field name="inherit_id" ref="stock.view_product_standard_price_form" />
1101
<field name="arch" type="xml">
1102
<xpath expr="//button[@string='Update']" position="replace" />
1106
<record id="stock_picking_cancel_wizard" model="ir.ui.view">
1107
<field name="name">stock.picking.cancel.wizard</field>
1108
<field name="model">stock.picking.cancel.wizard</field>
1109
<field name="type">form</field>
1110
<field name="arch" type="xml">
1111
<form string="Cancel Picking">
1112
<group colspan="4" col="1">
1114
<h4 style="text-align: center; margin: 10px">If you click on 'Cancel & 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>
1118
<separator string="Actions" />
1119
<button name="just_cancel" string="Cancel only" type="object" icon="gtk-cancel" colspan="2" />
1120
<button name="cancel_and_resource" string="Cancel & Resource" type="object" icon="gtk-cancel" colspan="2" />
1125
<record id="stock_move_cancel_wizard_form_view" model="ir.ui.view">
1126
<field name="name">stock.move.cancel.wizard.form.view</field>
1127
<field name="model">stock.move.cancel.wizard</field>
1128
<field name="type">form</field>
1129
<field name="arch" type="xml">
1130
<form string="Cancel move">
1131
<group colspan="4" col="1">
1133
<h4 style="text-align: center; margin: 10px">Would you re-source the need sourced by this stock move ?</h4>
1137
<separator string="Actions" colspan="4" />
1138
<button name="just_cancel" string="No" type="object" icon="gtk-execute" colspan="2" />
1139
<button name="cancel_and_resource" string="Yes" type="object" icon="gtk-execute" colspan="2" />