~unifield-team/unifield-wm/trunk

« back to all changes in this revision

Viewing changes to msf_outgoing/msf_outgoing_view.xml

Removed groups= in xml (except for group_multi_company and group_no_one)

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
                        <field name="help">This is the list of all your pack types.</field>
136
136
                </record>
137
137
                <menuitem action="action_pack_type_tree" id="menu_action_pack_type_tree"
138
 
                groups="base.group_extended"
139
138
                sequence="6"
140
139
                parent="stock.menu_product_in_config_stock"/>
141
140
                <!-- Changed name to 'Picking Tickets' -->
148
147
                                <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking Tickets">
149
148
                                        <field name="name"/>
150
149
                                        <field name="partner_id2" />
151
 
                                        <field name="backorder_id" groups="base.group_extended"/>
 
150
                                        <field name="backorder_id" />
152
151
                                        <field name="sale_id" invisible="True" />
153
152
                                        <field name="reason_type_id" />
154
153
                                        <field name="origin"/>
197
196
                                                        required="1"
198
197
                                                        attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
199
198
                                                        <field name="address_id" colspan="2" context="{'contact_display':'partner'}" attrs="{'required': [('subtype', 'in', ('picking', 'ppl'))]}" />
200
 
                                                        <field name="backorder_id" readonly="1" groups="base.group_extended"/>
 
199
                                                        <field name="backorder_id" readonly="1" />
201
200
                                                        <field name="reason_type_id" widget="selection"/>
202
201
                                                </group>
203
202
                                                <group colspan="2" col="2">
204
203
                                                        <field name="date" readonly="1"/>
205
 
                                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
 
204
                                                        <field name="stock_journal_id" widget="selection" invisible="True" />
206
205
                                                        <field name="min_date" string="Expected Pick Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
207
206
                                                        <field name="sale_id" invisible="True" />
208
207
                                                        <field name="subtype" invisible="True" />
224
223
                                                                        <field name="composition_list_id" />
225
224
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
226
225
                                                                        <field name="product_uom" string="UoM"/>
227
 
                                                                        <field name="product_uos" groups="product.group_uos"/>
 
226
                                                                        <field name="product_uos" />
228
227
                                                                        <field name="asset_id" />
229
 
                                                                        <field name="prodlot_id" string="Batch Number" groups="base.group_extended"/>
 
228
                                                                        <field name="prodlot_id" string="Batch Number" />
230
229
                                                                        <field name="expired_date" />
231
230
                                                                        <field name="kc_dg" invisible="1" />
232
231
                                                                        <field name="location_id" string="Src. Loc"  />
268
267
                                                                                        attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
269
268
                                                                                        colspan="2"
270
269
                                                                                         />
271
 
                                                                                <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
272
 
                                                                                <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
273
 
                                                                                <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
 
270
                                                                                <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
 
271
                                                                                <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
 
272
                                                                                <field name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
274
273
                                                                        </group>
275
274
                                                                        <group colspan="2" col="2">
276
275
                                                                                <separator string="Locations" colspan="2" />
284
283
                                                                                         />
285
284
                                                                                <field name="location_dest_id" readonly="1" on_change="location_dest_change(location_dest_id)" />
286
285
                                                                        </group>
287
 
                                                                        <group colspan="2" col="4" groups="base.group_extended">
288
 
                                                                                <separator string="Traceability" colspan="4" groups="base.group_extended"/>
 
286
                                                                        <group colspan="2" col="4">
 
287
                                                                                <separator string="Traceability" colspan="4" />
289
288
                                                                                <field name="asset_id" colspan="4" />
290
289
                                                                                <field name="hidden_batch_management_mandatory" invisible="True" />
291
290
                                                                                <field name="hidden_perishable_mandatory" invisible="True" />
292
 
                                                                                <field name="prodlot_id" groups="base.group_extended"
 
291
                                                                                <field name="prodlot_id"
293
292
                                                                                        context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
294
293
                                                                                        'search_default_real': True}"
295
294
                                                                                        domain="[('product_id','=?',product_id), ('check_type','=', True)]"
329
328
                                                                <field name="state" readonly="1"/>
330
329
                                                                <field name="flow_type" />
331
330
                                                                <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel Picking" icon="gtk-cancel"/>
332
 
                                                                <button name="action_assign" states="draft,confirmed,assigned" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
 
331
                                                                <button name="action_assign" states="draft,confirmed,assigned" string="Check Availability" type="object" icon="gtk-find"/>
333
332
                                                                <button name="convert_to_standard" states="draft" string="Convert to Simple Out" type="object" icon="gtk-convert" />
334
333
                                                                <button name="create_picking" states="draft" string="Create Picking..." type="object" icon="gtk-add" />
335
334
                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
337
336
                                                                <!-- <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"/> -->
338
337
                                                        </group>
339
338
                                                </page>
340
 
                                                <page string="Additional info" groups="base.group_extended,base.group_multi_company">
341
 
                                                        <field name="auto_picking" groups="base.group_extended" invisible="1"/>
342
 
                                                        <field name="date_done" groups="base.group_extended"/>
343
 
                                                        <field name="move_type" groups="base.group_extended" invisible="1"/>
344
 
                                                        <field name="type" groups="base.group_extended" invisible="1"/>
 
339
                                                <page string="Additional info">
 
340
                                                        <field name="auto_picking" invisible="1"/>
 
341
                                                        <field name="date_done" />
 
342
                                                        <field name="move_type" invisible="1"/>
 
343
                                                        <field name="type" invisible="1"/>
345
344
                                                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
346
345
                                                </page>
347
346
                                                <page string="Notes">
364
363
                                                <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" />
365
364
                                                <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" />
366
365
                                                <separator orientation="vertical"/>
367
 
                                                <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
 
366
                                                <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" />
368
367
                                                <separator orientation="vertical"/>
369
368
                                                <filter icon="terp-folder-orange" name="empty" string="Empty" domain="[('overall_qty','=', 0.0)]" />
370
369
                                                <filter icon="terp-folder-green" name="not_empty" string="Not Empty" domain="[('overall_qty','!=', 0.0)]" />
390
389
                                                <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
391
390
                                                <separator orientation="vertical" />
392
391
                                                <!-- Field stock_journal_id is not in the tree view
393
 
                                                <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>-->
 
392
                                                <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" />-->
394
393
                                        </group>
395
394
                                </search>
396
395
                        </field>
409
408
                                                <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" />
410
409
                                                <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" />
411
410
                                                <separator orientation="vertical"/>
412
 
                                                <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
 
411
                                                <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" />
413
412
                                                <separator orientation="vertical"/>
414
413
                                                <filter icon="terp-folder-orange" name="empty" string="Empty" domain="[('overall_qty','=', 0.0)]" />
415
414
                                                <filter icon="terp-folder-green" name="not_empty" string="Not Empty" domain="[('overall_qty','!=', 0.0)]" />
520
519
                                        <field name="name"/>
521
520
                    <field name="description_ppl"/>
522
521
                                        <field name="partner_id2"/>
523
 
                                        <field name="backorder_id" groups="base.group_extended"/>
 
522
                                        <field name="backorder_id" />
524
523
                                        <field name="origin"/>
525
524
                                        <field name="reason_type_id" />
526
525
                                        <field name="date"/>
566
565
                                                        attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
567
566
                                                        <field name="address_id" colspan="2" context="{'contact_display':'partner'}" attrs="{'required': [('subtype', 'in', ('picking', 'ppl'))]}" />
568
567
                                                        <field name="invoice_state" invisible="1" />
569
 
                                                        <field name="backorder_id" readonly="1" groups="base.group_extended"/>
 
568
                                                        <field name="backorder_id" readonly="1" />
570
569
                                                        <field name="reason_type_id" widget="selection"/>
571
570
                                                        <field name="num_of_packs" />
572
571
                                                        <field name="total_volume" />
574
573
                                                </group>
575
574
                                                <group colspan="2" col="2">
576
575
                                                        <field name="date" readonly="1" />
577
 
                                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
 
576
                                                        <field name="stock_journal_id" widget="selection" invisible="True" />
578
577
                                                        <field name="min_date" string="Expected Pack Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
579
578
                                                        <field name="sale_id" invisible="True" />
580
579
                                                        <field name="subtype" invisible="True" />
592
591
                                                                        <field name="composition_list_id" />
593
592
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
594
593
                                                                        <field name="product_uom" string="UoM"/>
595
 
                                                                        <field name="product_uos" groups="product.group_uos"/>
 
594
                                                                        <field name="product_uos" />
596
595
                                                                        <field name="asset_id" />
597
 
                                                                        <field name="prodlot_id" string="Batch Number" groups="base.group_extended"/>
 
596
                                                                        <field name="prodlot_id" string="Batch Number" />
598
597
                                                                        <field name="expired_date" />
599
598
                                                                        <field name="kc_dg" />
600
599
                                                                        <field name="location_id" string="Src. Loc" />
621
620
                                        <field name="composition_list_id" invisible="True" />
622
621
                                                                                <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
623
622
                                                                                <field name="product_uom" string="Unit Of Measure" colspan="2" />
624
 
                                                                                <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
625
 
                                                                                <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
626
 
                                                                                <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
 
623
                                                                                <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
 
624
                                                                                <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
 
625
                                                                                <field name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
627
626
                                                                        </group>
628
627
                                                                        <group colspan="2" col="2">
629
628
                                                                                <separator string="Locations" colspan="2" />
631
630
                                                                                context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
632
631
                                                                                <field name="location_dest_id" domain="[('usage','&lt;&gt;','view')]" on_change="location_dest_change(location_dest_id)" readonly="1" />
633
632
                                                                        </group>
634
 
                                                                        <group colspan="2" col="4" groups="base.group_extended">
635
 
                                                                                <separator string="Traceability" colspan="4" groups="base.group_extended"/>
 
633
                                                                        <group colspan="2" col="4">
 
634
                                                                                <separator string="Traceability" colspan="4" />
636
635
                                                                                <field name="asset_id" colspan="4" />
637
636
                                                                                <field name="hidden_batch_management_mandatory" invisible="True" />
638
637
                                                                                <field name="hidden_perishable_mandatory" invisible="True" />
639
 
                                                                                <field name="prodlot_id" groups="base.group_extended"
 
638
                                                                                <field name="prodlot_id"
640
639
                                                                                context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
641
640
                                                                                'search_default_real': True}"
642
641
                                                                                domain="[('product_id','=?',product_id), ('check_type','=', True)]"
676
675
                                                                <field name="state" readonly="1"/>
677
676
                                                                <field name="flow_type" />
678
677
                                                                <button name="return_products" string="Return Products..." states="confirmed,assigned" type="object" icon="gtk-undo"/>
679
 
                                                                <button name="action_assign" states="" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
 
678
                                                                <button name="action_assign" states="" string="Check Availability" type="object" icon="gtk-find"/>
680
679
                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
681
680
                                                                <button name="ppl" states="assigned" string="Pack..." type="object" icon="terp-accessories-archiver"/>
682
681
                                                                <!-- <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"/> -->
683
682
                                                        </group>
684
683
                                                </page>
685
 
                                                <page string="Additional info" groups="base.group_extended,base.group_multi_company">
686
 
                                                        <field name="auto_picking" groups="base.group_extended" invisible="1" />
687
 
                                                        <field name="date_done" groups="base.group_extended"/>
688
 
                                                        <field name="move_type" groups="base.group_extended" invisible="1"/>
689
 
                                                        <field name="type" groups="base.group_extended" invisible="1"/>
 
684
                                                <page string="Additional info">
 
685
                                                        <field name="auto_picking" invisible="1" />
 
686
                                                        <field name="date_done" />
 
687
                                                        <field name="move_type" invisible="1"/>
 
688
                                                        <field name="type" invisible="1"/>
690
689
                                                        <field name="company_id" groups="base.group_multi_company" widget="selection" invisible="1"/>
691
690
                                                </page>
692
691
                                                <page string="Notes">
780
779
                                                         />
781
780
                                                        <field name="address_id" colspan="2" context="{'contact_display':'partner'}"  readonly="1"/>
782
781
                                                        <field name="invoice_state"/>
783
 
                                                        <field name="backorder_id" readonly="1" groups="base.group_extended"/>
 
782
                                                        <field name="backorder_id" readonly="1" />
784
783
                                                        <field name="num_of_packs" attrs="{'invisible': [('subtype', 'in', ('picking'))]}"/>
785
784
                                                        <field name="total_weight" attrs="{'invisible': [('subtype', 'in', ('picking'))]}"/>
786
785
                                                </group>
787
786
                                                <group colspan="2" col="2">
788
787
                                                        <field name="date" readonly="1"/>
789
 
                                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
 
788
                                                        <field name="stock_journal_id" widget="selection" invisible="True" />
790
789
                                                        <field name="min_date" readonly="1" string="Expected Pack Date"  />
791
790
                                                        <field name="reason_type_id" widget="selection" readonly="1"/>
792
791
                                                        <field name="sale_id" invisible="True" />
804
803
                                                                        <field name="composition_list_id" />
805
804
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
806
805
                                                                        <field name="product_uom" string="UoM"/>
807
 
                                                                        <field name="product_uos" groups="product.group_uos"/>
808
 
                                                                        <field name="prodlot_id" string="Batch Number" groups="base.group_extended"/>
 
806
                                                                        <field name="product_uos" />
 
807
                                                                        <field name="prodlot_id" string="Batch Number" />
809
808
                                                                        <field name="expired_date" />
810
809
                                                                        <field name="kc_dg" />
811
810
                                                                        <field name="location_id" string="Src. Loc" />
828
827
                                                                <field name="flow_type" />
829
828
                                                        </group>
830
829
                                                </page>
831
 
                                                <page string="Additional info" groups="base.group_extended,base.group_multi_company">
832
 
                                                        <field name="auto_picking" groups="base.group_extended" readonly="1"/>
833
 
                                                        <field name="date_done" groups="base.group_extended" readonly="1"/>
834
 
                                                        <field name="move_type" groups="base.group_extended" readonly="1"/>
835
 
                                                        <field name="type" groups="base.group_extended" readonly="1"/>
 
830
                                                <page string="Additional info">
 
831
                                                        <field name="auto_picking" readonly="1"/>
 
832
                                                        <field name="date_done" readonly="1"/>
 
833
                                                        <field name="move_type" readonly="1"/>
 
834
                                                        <field name="type" readonly="1"/>
836
835
                                                        <field name="company_id" groups="base.group_multi_company" widget="selection" readonly="1"/>
837
836
                                                </page>
838
837
                                                <page string="Notes">
857
856
                                        <field name="overall_qty" invisible="True" />
858
857
                                        <field name="date"/>
859
858
                                        <field name="min_date" string="Expected Pick Date" />
860
 
                                        <field name="backorder_id" groups="base.group_extended"/>
 
859
                                        <field name="backorder_id" />
861
860
                                        <field name="invoice_state"/>
862
 
                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
 
861
                                        <field name="stock_journal_id" widget="selection"/>
863
862
                                        <field name="state"/>
864
863
                                </tree>
865
864
                        </field>
901
900
                                        <field name="reason_type_id" />
902
901
                                        <field name="date"/>
903
902
                                        <field name="min_date"/>
904
 
                                        <field name="backorder_id" groups="base.group_extended"/>
 
903
                                        <field name="backorder_id" />
905
904
                                        <field name="invoice_state"/>
906
 
                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
 
905
                                        <field name="stock_journal_id" widget="selection"/>
907
906
                                        <field name="state"/>
908
907
                                </tree>
909
908
                        </field>
944
943
                                                        attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
945
944
                                                        <field name="address_id" colspan="2" context="{'contact_display':'partner'}" />
946
945
                                                        <field name="invoice_state"/>
947
 
                                                        <field name="backorder_id" readonly="1" groups="base.group_extended"/>
 
946
                                                        <field name="backorder_id" readonly="1" />
948
947
                                                        <field name="shipment_id" readonly="True" />
949
948
                                                </group>
950
949
                                                <group colspan="2" col="2">
951
950
                                                        <field name="date" readonly="1" />
952
951
                                                        <field name="min_date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
953
 
                                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
 
952
                                                        <field name="stock_journal_id" widget="selection" invisible="True" />
954
953
                                                        <field name="reason_type_id" widget="selection"/>
955
954
                                                        <field name="sale_id" invisible="True" />
956
955
                                                        <field name="subtype" invisible="True" />
965
964
                                                                        <field name="composition_list_id" />
966
965
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
967
966
                                                                        <field name="product_uom" string="UoM"/>
968
 
                                                                        <field name="product_uos" groups="product.group_uos"/>
 
967
                                                                        <field name="product_uos" />
969
968
                                                                        <field name="asset_id" />
970
 
                                                                        <field name="prodlot_id" string="Batch Number" groups="base.group_extended"/>
 
969
                                                                        <field name="prodlot_id" string="Batch Number" />
971
970
                                                                        <field name="expired_date" />
972
971
                                                                        <field name="kc_dg" />
973
972
                                                                        <field name="location_id" string="Src. Loc" />
996
995
                                        <field name="composition_list_id" invisible="True" />
997
996
                                                                                <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
998
997
                                                                                <field name="product_uom" string="Unit Of Measure" colspan="4" />
999
 
                                                                                <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
1000
 
                                                                                <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
1001
 
                                                                                <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" />
 
998
                                                                                <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
 
999
                                                                                <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
 
1000
                                                                                <field name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" />
1002
1001
                                                                        </group>
1003
1002
                                                                        <group colspan="2" col="2">
1004
1003
                                                                                <separator string="Locations" colspan="2" />
1012
1011
                                                                                <field name="date"/>
1013
1012
                                                                                <field name="date_expected"/>
1014
1013
                                                                        </group>
1015
 
                                                                        <group colspan="2" col="4" groups="base.group_extended">
1016
 
                                                                                <separator string="Traceability" colspan="4" groups="base.group_extended"/>
 
1014
                                                                        <group colspan="2" col="4">
 
1015
                                                                                <separator string="Traceability" colspan="4" />
1017
1016
                                                                                <field name="reason_type_id"  attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" widget="selection"/>
1018
 
                                                                                <field name="prodlot_id" groups="base.group_extended"
 
1017
                                                                                <field name="prodlot_id"
1019
1018
                                                                                context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
1020
1019
                                                                                'search_default_real': True}"
1021
1020
                                                                                domain="[('product_id','=?',product_id), ('check_type','=', True)]"
1045
1044
                                                                <field name="state" readonly="1"/>
1046
1045
                                                                <field name="flow_type" />
1047
1046
                                                                <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel Picking" icon="gtk-cancel"/>
1048
 
                                                                <button name="action_assign" states="draft,confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
 
1047
                                                                <button name="action_assign" states="draft,confirmed" string="Check Availability" type="object" icon="gtk-find"/>
1049
1048
                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
1050
1049
                                                                <button name="packing" states="assigned" string="Pack..." type="object" icon="gtk-go-forward"/>
1051
1050
                                                                <button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
1052
1051
                                                                <!-- <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"/> -->
1053
1052
                                                        </group>
1054
1053
                                                </page>
1055
 
                                                <page string="Additional info" groups="base.group_extended,base.group_multi_company">
1056
 
                                                        <field name="auto_picking" groups="base.group_extended"/>
1057
 
                                                        <field name="date_done" groups="base.group_extended"/>
1058
 
                                                        <field name="move_type" groups="base.group_extended"/>
1059
 
                                                        <field name="type" groups="base.group_extended"/>
 
1054
                                                <page string="Additional info">
 
1055
                                                        <field name="auto_picking" />
 
1056
                                                        <field name="date_done" />
 
1057
                                                        <field name="move_type" />
 
1058
                                                        <field name="type" />
1060
1059
                                                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1061
1060
                                                </page>
1062
1061
                                                <page string="Notes">
1078
1077
                                                <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Delivery Orders"/>
1079
1078
                                                <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
1080
1079
                                                <separator orientation="vertical"/>
1081
 
                                                <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
 
1080
                                                <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" />
1082
1081
                                                <separator orientation="vertical"/>
1083
1082
                                                <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
1084
1083
                                                <separator orientation="vertical"/>
1086
1085
                                                <field name="partner_id2" />
1087
1086
                                                <field name="origin"/>
1088
1087
                                                <field name="reason_type_id" widget="selection"/>
1089
 
                                                <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
 
1088
                                                <field name="stock_journal_id" widget="selection"/>
1090
1089
                                                <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1091
1090
                                        </group>
1092
1091
                                        <newline/>
1100
1099
                                                <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1101
1100
                                                <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1102
1101
                                                <separator orientation="vertical" />
1103
 
                                                <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
 
1102
                                                <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" />
1104
1103
                                        </group>
1105
1104
                                </search>
1106
1105
                        </field>
1236
1235
                                                        <group col="12" colspan="4">
1237
1236
                                                                <field name="state" readonly="1"/>
1238
1237
                                                                <button name="return_packs" states="draft" string="Return Packs to Stock..." type="object" icon="gtk-undo"/>
1239
 
                                                                <button name="create_shipment" states="draft" string="Create Shipment..." type="object" groups="base.group_extended" icon="gtk-add" />
1240
 
                                                                <button name="action_cancel" states="packed" string="Cancel Shipment" type="object" groups="base.group_extended" icon="gtk-cancel" />
1241
 
                                                                <button name="ship" states="packed" string="Ship" type="object" groups="base.group_extended" icon="gtk-redo" />
 
1238
                                                                <button name="create_shipment" states="draft" string="Create Shipment..." type="object" icon="gtk-add" />
 
1239
                                                                <button name="action_cancel" states="packed" string="Cancel Shipment" type="object" icon="gtk-cancel" />
 
1240
                                                                <button name="ship" states="packed" string="Ship" type="object" icon="gtk-redo" />
1242
1241
                                                                <button name="return_packs_from_shipment" states="shipped" string="Return Packs from Shipment..." type="object" icon="gtk-undo"/>
1243
 
                                                                <button name="validate" states="shipped" string="Validate" type="object" groups="base.group_extended" icon="gtk-apply" />
 
1242
                                                                <button name="validate" states="shipped" string="Validate" type="object" icon="gtk-apply" />
1244
1243
                                                                <button name="set_delivered" icon="gtk-apply" type="object" string="Validate Delivery" attrs="{'invisible': [('state', '!=', 'done')]}" />
1245
1244
                                                        </group>
1246
1245
                                                </page>