68
67
<field name="type">ir.actions.act_window</field>
69
68
<field name="view_type">form</field>
70
69
<field name="view_mode">tree,form,calendar</field>
71
<field name="domain">[('type','=','out'), ('subtype', '=', 'standard')]</field>
70
<field name="domain">[('type','=','out'), ('subtype', '=', 'standard'),]</field>
72
71
<field name="context">{'contact_display': 'partner_address', 'search_default_available': 1}</field>
73
72
<field name="search_view_id" ref="stock.view_picking_out_search"/>
74
73
<field name="help">This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules.</field>
81
80
<field name="type">ir.actions.act_window</field>
82
81
<field name="view_type">form</field>
83
82
<field name="view_mode">tree,form,calendar</field>
84
<field name="domain">[('type','=','out'), ('subtype', '=', 'standard')]</field>
83
<field name="domain">[('type','=','out'), ('subtype', '=', 'standard'),]</field>
85
84
<field name="context">{'contact_display': 'partner_address', 'search_default_available': 1}</field>
86
85
<field name="search_view_id" ref="stock.view_picking_out_search"/>
87
86
<field name="help">This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules.</field>
89
<menuitem id="stock.menu_action_picking_tree" parent="menu_warehouse_deliveries" />
88
<!-- delete outgoing delivery menuitem -->
89
<!-- <delete model="ir.ui.menu" id="stock.menu_action_picking_tree"/> -->
91
91
<record id="view_warehouse" model="ir.ui.view">
92
92
<field name="name">stock.warehouse</field>
190
190
<group colspan="4" col="4">
191
191
<field name="name" readonly="1"/>
192
192
<field name="origin" readonly="1"/>
193
<field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4" attrs="{'required': [('subtype', 'in', ('picking', 'ppl'))]}" />
193
<field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4" attrs="{'required': [('subtype', 'in', ('picking', 'ppl',))],}" />
194
194
<field name="invoice_state"/>
195
195
<field name="backorder_id" readonly="1" groups="base.group_extended"/>
197
197
<group colspan="2" col="2">
198
198
<field name="date"/>
199
<field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
200
<field name="min_date" readonly="1" string="Expected Pick Date" />
199
<field name="min_date" readonly="1"/>
201
200
<field name="reason_type_id" widget="selection"/>
202
201
<field name="sale_id" invisible="True" />
203
202
<field name="subtype" invisible="True" />
204
<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
203
<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking'),]}" />
207
206
<notebook colspan="4">
208
207
<page string="Products">
209
<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'reason_type_id': reason_type_id, 'move_line':move_lines, 'address_out_id': address_id}" on_change="onchange_move()" >
208
<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'reason_type_id': reason_type_id, 'move_line':move_lines, 'address_out_id': address_id}">
210
209
<tree string="Stock Moves">
211
210
<field name="product_id"/>
212
211
<field name="asset_id" />
213
212
<field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
214
213
<field name="product_uom" string="UoM"/>
215
214
<field name="product_uos" groups="product.group_uos"/>
216
<field name="prodlot_id" string="Batch Number" groups="base.group_extended"/>
215
<field name="prodlot_id" string="Prod. Lot" groups="base.group_extended"/>
217
216
<field name="expired_date" />
218
217
<field name="kc_dg" />
219
218
<field name="location_id" string="Src. Loc" />
220
219
<field name="location_dest_id" string="Dest. Loc" />
221
220
<field name="virtual_available" />
222
<field name="date" string="Actual Pick Date" />
223
222
<field name="state"/>
224
223
<field name="kc_check" />
225
224
<field name="ssl_check" />
230
229
<group colspan="2" col="4">
231
230
<separator colspan="4" string="Move Information"/>
232
231
<field name="name" invisible="1" colspan="4" />
233
<field name="product_id" context="{'location': location_id}" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
232
<field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
234
233
<field name="asset_id" />
235
234
<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
236
235
<field name="product_uom" string="Unit Of Measure" colspan="4" />
242
241
<group colspan="2" col="2">
243
242
<separator string="Locations" colspan="2" />
244
<field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False)]"
245
context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
243
<field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False),]" />
246
244
<field name="location_dest_id" domain="[('usage','<>','view')]" on_change="location_dest_change(location_dest_id)" />
249
247
<group colspan="2" col="2">
250
248
<separator string="Dates" colspan="2" />
251
249
<field name="create_date" invisible="1"/>
252
<field name="date" string="Actual Pick Date" />
253
<field name="date_expected" string="Expected Pick Date" />
251
<field name="date_expected"/>
256
254
<group colspan="2" col="4" groups="base.group_extended">
257
255
<separator string="Traceability" colspan="4" groups="base.group_extended"/>
258
<field name="reason_type_id" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
256
<field name="reason_type_id" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
259
257
<field name="prodlot_id" groups="base.group_extended"
260
context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
261
'search_default_real': True}"
262
domain="[('product_id','=?',product_id), ('check_type','=', True)]"
263
on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"
264
attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
265
<field name="hidden_batch_management_mandatory" invisible="True" />
266
<field name="hidden_perishable_mandatory" invisible="True" />
258
context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,}"
259
domain="[('product_id','=?',product_id), ('check_type','=', True),]"
260
on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"
261
attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False),],}" />
262
<field name="hidden_batch_management_mandatory" invisible="True" />
263
<field name="hidden_perishable_mandatory" invisible="True" />
267
264
<field name="expired_date" />
268
265
<field name="kc_check" />
269
266
<field name="ssl_check" />
465
462
<group colspan="4" col="4">
466
463
<field name="name" readonly="1"/>
467
464
<field name="origin" readonly="1"/>
468
<field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4" attrs="{'required': [('subtype', 'in', ('picking', 'ppl'))]}" />
465
<field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4" attrs="{'required': [('subtype', 'in', ('picking', 'ppl',))],}" />
469
466
<field name="invoice_state"/>
470
467
<field name="backorder_id" readonly="1" groups="base.group_extended"/>
471
468
<field name="num_of_packs" />
474
471
<group colspan="2" col="2">
475
472
<field name="date"/>
476
<field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
477
<field name="min_date" readonly="1" string="Expected Pack Date" />
473
<field name="min_date" readonly="1"/>
478
474
<field name="reason_type_id" widget="selection"/>
479
475
<field name="sale_id" invisible="True" />
480
476
<field name="subtype" invisible="True" />
481
<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
477
<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking'),]}" />
482
478
<field name='ppl_customize_label' required="True" />
510
506
<group colspan="2" col="4">
511
507
<separator colspan="4" string="Move Information"/>
512
508
<field name="name" invisible="1" colspan="4" />
513
<field name="product_id" context="{'location': location_id}" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
509
<field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
514
510
<field name="asset_id" />
515
511
<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
516
512
<field name="product_uom" string="Unit Of Measure" colspan="4" />
522
518
<group colspan="2" col="2">
523
519
<separator string="Locations" colspan="2" />
524
<field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False)]"
525
context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
520
<field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False),]" />
526
521
<field name="location_dest_id" domain="[('usage','<>','view')]" on_change="location_dest_change(location_dest_id)" />
529
524
<group colspan="2" col="2">
530
525
<separator string="Dates" colspan="2" />
531
526
<field name="create_date" invisible="1"/>
532
<field name="date" string="Actual Pack Date" />
533
<field name="date_expected" string="Expected Pack Date" />
528
<field name="date_expected"/>
536
531
<group colspan="2" col="4" groups="base.group_extended">
537
<field name="reason_type_id" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
532
<field name="reason_type_id" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
538
533
<separator string="Traceability" colspan="4" groups="base.group_extended"/>
539
534
<field name="prodlot_id" groups="base.group_extended"
540
context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
541
'search_default_real': True}"
542
domain="[('product_id','=?',product_id), ('check_type','=', True)]"
535
context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,}"
536
domain="[('product_id','=?',product_id), ('check_type','=', True),]"
543
537
on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"
544
attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
538
attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False),],}" />
545
539
<field name="hidden_batch_management_mandatory" invisible="True" />
546
<field name="hidden_perishable_mandatory" invisible="True" />
540
<field name="hidden_perishable_mandatory" invisible="True" />
547
541
<field name="expired_date" />
548
542
<field name="kc_check" />
549
543
<field name="ssl_check" />
716
711
<group colspan="2" col="2">
717
712
<field name="date"/>
718
713
<field name="min_date" readonly="1"/>
719
<field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
720
714
<field name="reason_type_id" widget="selection"/>
721
715
<field name="sale_id" invisible="True" />
722
716
<field name="subtype" invisible="True" />
723
<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
717
<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking'),]}" />
726
720
<notebook colspan="4">
754
748
<group colspan="2" col="4">
755
749
<separator colspan="4" string="Move Information"/>
756
750
<field name="name" invisible="1" colspan="4" />
757
<field name="product_id" context="{'location': location_id}" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
751
<field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
758
752
<field name="asset_id" />
759
753
<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
760
754
<field name="product_uom" string="Unit Of Measure" colspan="4" />
766
760
<group colspan="2" col="2">
767
761
<separator string="Locations" colspan="2" />
768
<field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False)]"
769
context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
762
<field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False),]" />
770
763
<field name="location_dest_id" domain="[('usage','<>','view')]" on_change="location_dest_change(location_dest_id)" />
780
773
<group colspan="2" col="4" groups="base.group_extended">
781
774
<separator string="Traceability" colspan="4" groups="base.group_extended"/>
782
<field name="reason_type_id" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
775
<field name="reason_type_id" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/>
783
776
<field name="prodlot_id" groups="base.group_extended"
784
context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
785
'search_default_real': True}"
786
domain="[('product_id','=?',product_id), ('check_type','=', True)]"
777
context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,}"
778
domain="[('product_id','=?',product_id), ('check_type','=', True),]"
787
779
on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"
788
attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
780
attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False),],}" />
789
781
<field name="hidden_batch_management_mandatory" invisible="True" />
790
<field name="hidden_perishable_mandatory" invisible="True" />
782
<field name="hidden_perishable_mandatory" invisible="True" />
791
783
<field name="expired_date" />
792
784
<field name="kc_check" />
793
785
<field name="ssl_check" />
936
927
<group colspan="4" col="4">
937
928
<field name="name" readonly="1"/>
938
929
<field name="date" readonly="True" />
939
<field name="shipment_actual_date" />
940
<field name="shipment_expected_date" attrs="{'readonly': [('state', 'not in', ('draft', 'packed'))]}" />
941
930
<field name="transport_type" />
942
931
<field name="partner_id" readonly="1"/>
943
932
<field name="backshipment_id" readonly="True" />