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

« back to all changes in this revision

Viewing changes to msf_outgoing/msf_outgoing_view.xml

  • Committer: jf
  • Date: 2012-06-13 12:43:21 UTC
  • mfrom: (827.5.11 uf-635)
  • Revision ID: jf@tempo4-20120613124321-2b8cwgl86gyy2tb7
UF-635 [DEV] Documents workflow: Graphic representation
lp:~unifield-team/unifield-wm/uf-635 revno 838

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<openerp>
 
3
        <data>
 
4
 
 
5
                <menuitem name="Deliveries" id="menu_warehouse_deliveries" parent="stock.menu_stock_warehouse_mgmt" sequence="3"/>
 
6
                <menuitem id="menu_report_config" name="Report Customization" parent="stock.menu_stock_configuration" sequence="1"/>
 
7
                # -------------------------------------------------------------
 
8
                # Labels
 
9
                # -------------------------------------------------------------
 
10
                <record id="view_labels_tree" model="ir.ui.view">
 
11
                        <field name="name">stock.labels.tree</field>
 
12
                        <field name="model">ppl.customize.label</field>
 
13
                        <field name="type">tree</field>
 
14
                        <field name="arch" type="xml">
 
15
                                <tree string="Labels Customization">
 
16
                                        <field name="name"/>
 
17
                                        <field name="logo" />
 
18
                                        <field name="requestor_order_reference" />
 
19
                                        <field name="packing_parcel_number" />
 
20
                                        <field name="pre_packing_list_reference" />
 
21
                                        <field name="destination_partner" />
 
22
                                        <field name="destination_address" />
 
23
                                        <field name="weight" />
 
24
                                        <field name="specific_information" />
 
25
                                </tree>
 
26
                        </field>
 
27
                </record>
 
28
                <record id="view_labels_form" model="ir.ui.view">
 
29
                        <field name="name">stock.labels.form</field>
 
30
                        <field name="model">ppl.customize.label</field>
 
31
                        <field name="type">form</field>
 
32
                        <field name="arch" type="xml">
 
33
                                <form string="Labels Customization">
 
34
                                        <notebook>
 
35
                                                <page string="Customization">
 
36
                                                        <field name="name"/>
 
37
                                                        <separator string="Options" />
 
38
                                                        <field name="logo" />
 
39
                                                        <field name="requestor_order_reference" />
 
40
                                                        <field name="packing_parcel_number" />
 
41
                                                        <field name="pre_packing_list_reference" />
 
42
                                                        <field name="destination_partner" />
 
43
                                                        <field name="destination_address" />
 
44
                                                        <field name="weight" />
 
45
                                                        <field name="specific_information" />
 
46
                                                </page>
 
47
                                                <page string="Notes">
 
48
                                                        <field name="notes" nolabel="True" />
 
49
                                                </page>
 
50
                                        </notebook>
 
51
                                </form>
 
52
                        </field>
 
53
                </record>
 
54
                <record id="action_labels_tree" model="ir.actions.act_window">
 
55
                        <field name="name">Labels</field>
 
56
                        <field name="res_model">ppl.customize.label</field>
 
57
                        <field name="type">ir.actions.act_window</field>
 
58
                        <field name="view_type">form</field>
 
59
                        <field name="view_mode">tree,form</field>
 
60
                </record>
 
61
                <menuitem action="action_labels_tree" id="menu_report_custo_labels" parent="menu_report_config" sequence="7"/>
 
62
                <record id="view_picking_out_search" model="ir.ui.view">
 
63
                        <field name="name">view.picking.out.search</field>
 
64
                        <field name="model">stock.picking</field>
 
65
                        <field name="type">search</field>
 
66
                        <field name="inherit_id" ref="stock.view_picking_out_search" />
 
67
                        <field name="arch" type="xml">
 
68
                                <data>
 
69
                                        <xpath expr="/search/group[@string='Group By...']/filter[@string='Partner']" position="before">
 
70
                                                <filter string="Origin" name="origin" icon="terp-partner" domain="[]" context="{'group_by':'origin'}"/>
 
71
                                        </xpath>
 
72
                                </data>
 
73
                        </field>
 
74
                </record>
 
75
                <record id="view_picking_out_tree" model="ir.ui.view">
 
76
                        <field name="name">stock.picking.out.tree</field>
 
77
                        <field name="model">stock.picking</field>
 
78
                        <field name="type">tree</field>
 
79
                        <field name="inherit_id" ref="stock.view_picking_out_tree" />
 
80
                        <field name="arch" type="xml">
 
81
                                <data>
 
82
                                        <field name="origin" position="after">
 
83
                                                <field name="sale_id" invisible="True" />
 
84
                                        </field>
 
85
                                </data>
 
86
                        </field>
 
87
                </record>
 
88
                <record id="stock.action_picking_tree" model="ir.actions.act_window">
 
89
                        <field name="name">Delivery Orders</field>
 
90
                        <field name="res_model">stock.picking</field>
 
91
                        <field name="type">ir.actions.act_window</field>
 
92
                        <field name="view_type">form</field>
 
93
                        <field name="view_mode">tree,form,calendar</field>
 
94
                        <field name="domain">[('type','=','out'), ('subtype', '=', 'standard')]</field>
 
95
                        <field name="context">{'contact_display': 'partner_address', 'search_default_available': 1}</field>
 
96
                        <field name="search_view_id" ref="stock.view_picking_out_search"/>
 
97
                        <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>
 
98
                </record>
 
99
                <menuitem id="stock.menu_action_picking_tree" parent="menu_warehouse_deliveries" />
 
100
                <record id="view_warehouse" model="ir.ui.view">
 
101
                        <field name="name">stock.warehouse</field>
 
102
                        <field name="model">stock.warehouse</field>
 
103
                        <field name="type">form</field>
 
104
                        <field name="inherit_id" ref="stock.view_warehouse" />
 
105
                        <field name="arch" type="xml">
 
106
                                <data>
 
107
 
 
108
                                        <field name="lot_stock_id" position="after">
 
109
                                                <field name="lot_packing_id" domain="[('quarantine_location', '=', False)]" />
 
110
                                                <field name="lot_dispatch_id" domain="[('quarantine_location', '=', False)]" />
 
111
                                                <field name="lot_distribution_id" domain="[('quarantine_location', '=', False)]" />
 
112
                                        </field>
 
113
                                </data>
 
114
                        </field>
 
115
                </record>
 
116
                <record id="view_pack_type_tree" model="ir.ui.view">
 
117
                        <field name="name">pack.type.tree</field>
 
118
                        <field name="model">pack.type</field>
 
119
                        <field name="type">tree</field>
 
120
                        <field name="arch" type="xml">
 
121
                                <tree string="Pack Types" editable="bottom">
 
122
                                        <field name="name" />
 
123
                                        <field name="length" />
 
124
                                        <field name="width" />
 
125
                                        <field name="height" />
 
126
                                </tree>
 
127
                        </field>
 
128
                </record>
 
129
                <record id="action_pack_type_tree" model="ir.actions.act_window">
 
130
                        <field name="name">Pack Types</field>
 
131
                        <field name="type">ir.actions.act_window</field>
 
132
                        <field name="res_model">pack.type</field>
 
133
                        <field name="view_type">form</field>
 
134
                        <field name="view_id" ref="view_pack_type_tree"/>
 
135
                        <field name="help">This is the list of all your pack types.</field>
 
136
                </record>
 
137
                <menuitem action="action_pack_type_tree" id="menu_action_pack_type_tree"
 
138
                groups="base.group_extended"
 
139
                sequence="6"
 
140
                parent="stock.menu_product_in_config_stock"/>
 
141
                <!-- Changed name to 'Picking Tickets' -->
 
142
                <record id="view_picking_ticket_tree" model="ir.ui.view">
 
143
 
 
144
                        <field name="name">picking.ticket.tree</field>
 
145
                        <field name="model">stock.picking</field>
 
146
                        <field name="type">tree</field>
 
147
                        <field name="arch" type="xml">
 
148
                                <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
                                        <field name="name"/>
 
150
                                        <field name="partner_id2" />
 
151
                                        <field name="sale_id" invisible="True" />
 
152
                                        <field name="reason_type_id" />
 
153
                                        <field name="origin"/>
 
154
                                        <field name="overall_qty" invisible="True" />
 
155
                                        <field name="date"/>
 
156
                                        <field name="min_date" string="Expected Pick Date" />
 
157
                                        <field name="backorder_id" groups="base.group_extended"/>
 
158
                                        <field name="invoice_state"/>
 
159
                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
 
160
                                        <field name="state"/>
 
161
                                        <button name="create_picking" states="draft" string="Create Picking..." type="object" icon="gtk-add"/>
 
162
                                        <button name="validate_picking" states="assigned" string="Validate Picking..." type="object" icon="gtk-apply"/>
 
163
                                </tree>
 
164
                        </field>
 
165
                </record>
 
166
                <!-- Remove 'Process Later' (draft_force_assign) and 'Process Now' (draft_validate) buttons -->
 
167
                <!-- 'Check Availability' button available for 'draft' state -->
 
168
                <!-- Add 'Create Picking...' button -->
 
169
                <!-- Changed name to 'Picking Ticket' -->
 
170
                <!-- Add 'Flow Type' drop down list -->
 
171
                <!-- TREE -->
 
172
                <!-- Remove 'Scrap Products' button -->
 
173
                <!-- Remove 'Scrapped' -->
 
174
                <!-- Remove 'Split in production lots' -->
 
175
                <!-- Remove 'Put in current pack' -->
 
176
                <!-- Remove 'Put in a new pack' -->
 
177
                <!-- Remove 'Process' at stock.move level -->
 
178
                <!-- FORM -->
 
179
                <!-- Remove 'Scrap' button -->
 
180
                <!-- Remove 'New Pack' -->
 
181
                <!-- Remove 'tracking_id' -->
 
182
                <!-- Remove 'Split' -->
 
183
                <!-- Remove 'Process' button -->
 
184
                <!-- Added Asset Id to move tree and form -->
 
185
                <record id="view_picking_ticket_form" model="ir.ui.view">
 
186
                        <field name="name">picking.ticket.form</field>
 
187
                        <field name="model">stock.picking</field>
 
188
                        <field name="type">form</field>
 
189
                        <!-- without priority 'view_picking_form' from stock is used -->
 
190
                        <!-- but then other form view also use it... -->
 
191
                        <!-- <field eval="11" name="priority"/> -->
 
192
                        <field name="arch" type="xml">
 
193
                                <form string="Picking Ticket">
 
194
                                        <group col="6" colspan="4">
 
195
                                                <group colspan="4" col="4">
 
196
                                                        <field name="name" readonly="1"/>
 
197
                                                        <field name="origin" readonly="1"/>
 
198
                                                        <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)"
 
199
                                                        required="1"
 
200
                                                        attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
 
201
                                                        <field name="address_id" colspan="2" context="{'contact_display':'partner'}" attrs="{'required': [('subtype', 'in', ('picking', 'ppl'))]}" />
 
202
                                                        <field name="invoice_state"/>
 
203
                                                        <field name="backorder_id" readonly="1" groups="base.group_extended"/>
 
204
                                                </group>
 
205
                                                <group colspan="2" col="2">
 
206
                                                        <field name="date"/>
 
207
                                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
 
208
                                                        <field name="min_date" string="Expected Pick Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
 
209
                                                        <field name="reason_type_id" widget="selection"/>
 
210
                                                        <field name="sale_id" invisible="True" />
 
211
                                                        <field name="subtype" invisible="True" />
 
212
                                                        <field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
 
213
                                                </group>
 
214
                                        </group>
 
215
                                        <notebook colspan="4">
 
216
                                                <page string="Products">
 
217
                                                        <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'subtype': subtype, 'type': 'out', 'reason_type_id': reason_type_id, 'move_line':move_lines, 'address_out_id': address_id, 'warehouse_id': warehouse_id}" on_change="onchange_move()" >
 
218
                                                                <tree string="Stock Moves">
 
219
                                                                        <field name="product_id"/>
 
220
                                                                        <field name="asset_id" />
 
221
                                                                        <field name="composition_list_id" />
 
222
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
 
223
                                                                        <field name="product_uom" string="UoM"/>
 
224
                                                                        <field name="product_uos" groups="product.group_uos"/>
 
225
                                                                        <field name="prodlot_id" string="Batch Number" groups="base.group_extended"/>
 
226
                                                                        <field name="expired_date" />
 
227
                                                                        <field name="kc_dg" />
 
228
                                                                        <field name="location_id" string="Src. Loc"  />
 
229
                                                                        <field name="location_dest_id" string="Dest. Loc" />
 
230
                                                                        <field name="virtual_available" />
 
231
                                                                        <field name="date" string="Actual Pick Date" />
 
232
                                                                        <field name="state"/>
 
233
                                                                        <field name="lot_check" />
 
234
                                                                        <field name="exp_check" />
 
235
                                                                        <field name="kc_check" />
 
236
                                                                        <field name="ssl_check" invisible="True" />
 
237
                                                                        <field name="dg_check" />
 
238
                                                                        <field name="np_check" />
 
239
                                                                </tree>
 
240
                                                                <form string="Stock Moves">
 
241
                                                                        <group colspan="2" col="4">
 
242
                                                                                <separator colspan="4" string="Move Information"/>
 
243
                                                                                <field name="name" invisible="1" colspan="4" />
 
244
                                        <field name="product_id" context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': False}" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id, parent.type)" colspan="4" />
 
245
                                                                                <field name="asset_id" />
 
246
                                        <field name="composition_list_id" invisible="True" />
 
247
                                                                                <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
 
248
                                                                                <field name="product_uom" string="Unit Of Measure" colspan="4" />
 
249
                                                                                <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" />
 
250
                                                                                <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
 
251
                                                                                <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" />
 
252
                                                                        </group>
 
253
                                                                        <group colspan="2" col="2">
 
254
                                                                                <separator string="Locations" colspan="2" />
 
255
                                                                                <field name="location_virtual_id" invisible="1" />
 
256
                                                        <field name="location_output_id" invisible="1" />
 
257
                                                                                <field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False), ('id', '!=', location_output_id), ('location_id', '!=', location_output_id)]"
 
258
                                                                                context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
 
259
                                                                                <field name="location_dest_id" readonly="1" on_change="location_dest_change(location_dest_id)" />
 
260
                                                                        </group>
 
261
                                                                        <group colspan="2" col="2">
 
262
                                                                                <separator string="Dates" colspan="2" />
 
263
                                                                                <field name="create_date" invisible="1"/>
 
264
                                                                                <field name="date" string="Actual Pick Date" />
 
265
                                                                                <field name="date_expected" string="Expected Pick Date" />
 
266
                                                                        </group>
 
267
                                                                        <group colspan="2" col="4" groups="base.group_extended">
 
268
                                                                                <separator string="Traceability" colspan="4" groups="base.group_extended"/>
 
269
                                                                                <field name="reason_type_id"  attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" widget="selection"/>
 
270
                                                                                <field name="prodlot_id" groups="base.group_extended"
 
271
                                                                                context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
 
272
                                                                                'search_default_real': True}"
 
273
                                                                                domain="[('product_id','=?',product_id), ('check_type','=', True)]"
 
274
                                                                                on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"
 
275
                                                                                attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
 
276
                                                                                <field name="hidden_batch_management_mandatory" invisible="True" />
 
277
                                                                                <field name="hidden_perishable_mandatory" invisible="True" />
 
278
                                                                                <field name="expired_date" />
 
279
                                                                                <field name="lot_check" />
 
280
                                                                                <field name="exp_check" />
 
281
                                                                                <field name="kc_check" />
 
282
                                                                                <field name="ssl_check" invisible="True" />
 
283
                                                                                <field name="dg_check" />
 
284
                                                                                <field name="np_check" />
 
285
                                                                        </group>
 
286
                                                                        <label string="" colspan="4"/>
 
287
                                                                        <field name="state"/>
 
288
                                                                        <group col="4" colspan="2">
 
289
                                                                                <button name="action_cancel" states="assigned" string="Cancel Move" type="object" icon="gtk-cancel"/>
 
290
                                                                                <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
 
291
                                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
 
292
                                                                                <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
 
293
                                                                        </group>
 
294
                                                                </form>
 
295
                                                        </field>
 
296
                                                        <group col="12" colspan="4">
 
297
                                                                <field name="state" readonly="1"/>
 
298
                                                                <field name="flow_type" />
 
299
                                                                <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel Picking" icon="gtk-cancel"/>
 
300
                                                                <button name="action_assign" states="draft,confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
 
301
                                                                <button name="convert_to_standard" states="draft" string="Convert to Simple Out" type="object" icon="gtk-convert" />
 
302
                                                                <button name="create_picking" states="draft" string="Create Picking..." type="object" icon="gtk-add" />
 
303
                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
 
304
                                                                <button name="validate_picking" states="assigned" string="Validate Picking..." type="object" icon="gtk-apply"/>
 
305
                                                                <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"/>
 
306
                                                        </group>
 
307
                                                </page>
 
308
                                                <page string="Additional info" groups="base.group_extended,base.group_multi_company">
 
309
                                                        <field name="auto_picking" groups="base.group_extended"/>
 
310
                                                        <field name="date_done" groups="base.group_extended"/>
 
311
                                                        <field name="move_type" groups="base.group_extended"/>
 
312
                                                        <field name="type" groups="base.group_extended"/>
 
313
                                                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
 
314
                                                </page>
 
315
                                                <page string="Notes">
 
316
                                                        <field colspan="4" name="note" nolabel="1"/>
 
317
                                                </page>
 
318
                                        </notebook>
 
319
                                </form>
 
320
                        </field>
 
321
                </record>
 
322
                <!-- Changed name to 'Picking Tickets' -->
 
323
                <record id="view_picking_ticket_search" model="ir.ui.view">
 
324
                        <field name="name">picking.ticket.search</field>
 
325
                        <field name="model">stock.picking</field>
 
326
                        <field name="type">search</field>
 
327
                        <field name="arch" type="xml">
 
328
                                <search string="Picking Tickets">
 
329
                                        <group col="8" colspan="4">
 
330
                                                <filter icon="terp-document-new" name="draft" string="Draft" domain="[('state','=','draft')]" />
 
331
                                                <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" />
 
332
                                                <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" />
 
333
                                                <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" />
 
334
                                                <separator orientation="vertical"/>
 
335
                                                <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
 
336
                                                <separator orientation="vertical"/>
 
337
                                                <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
 
338
                                                <separator orientation="vertical"/>
 
339
                                                <filter icon="terp-folder-orange" name="empty" string="Empty" domain="[('overall_qty','=', 0.0)]" />
 
340
                                                <filter icon="terp-folder-green" name="not_empty" string="Not Empty" domain="[('overall_qty','!=', 0.0)]" />
 
341
                                                <separator orientation="vertical"/>
 
342
                                                <field name="name"/>
 
343
                                                <field name="partner_id2" />
 
344
                                                <field name="origin"/>
 
345
                                                <field name="reason_type_id" widget="selection" />
 
346
                                                <field name="company_id" widget="selection" groups="base.group_multi_company"/>
 
347
                                        </group>
 
348
                                        <newline/>
 
349
                                        <group expand="0" string="Group By..." colspan="4" col="8">
 
350
                                                <filter string="Origin" name="origin" icon="terp-partner" domain="[]" context="{'group_by':'origin'}"/>
 
351
                                                <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
 
352
                                                <separator orientation="vertical" />
 
353
                                                <filter string="Reason Type" icon="terp-purchase" domain="[]" context="{'group_by':'reason_type_id'}"/>
 
354
                                                <separator orientation="vertical" />
 
355
                                                <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
 
356
                                                <separator orientation="vertical" />
 
357
                                                <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
 
358
                                                <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
 
359
                                                <separator orientation="vertical" />
 
360
                                                <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
 
361
                                        </group>
 
362
                                </search>
 
363
                        </field>
 
364
                </record>
 
365
                <!-- Added 'subtype' in domain -->
 
366
                <record id="action_draft_picking_ticket" model="ir.actions.act_window">
 
367
                        <field name="name">Draft Picking Ticket</field>
 
368
                        <field name="res_model">stock.picking</field>
 
369
                        <field name="type">ir.actions.act_window</field>
 
370
                        <field name="view_type">form</field>
 
371
                        <field name="view_mode">tree,form,calendar</field>
 
372
                        <field name="domain">[('type','=','out'), ('subtype', '=', 'picking'), ('state', '=', 'draft')]</field>
 
373
                        <field name="context">{'contact_display':'partner_address', 'search_default_sale_id':1, 'group_by_no_leaf':0, 'group_by':'origin'}</field>
 
374
                        <field name="search_view_id" ref="view_picking_ticket_search"/>
 
375
                        <field name="help">This is the list of draft picking tickets.</field>
 
376
                </record>
 
377
                <record id="action_draft_picking_ticket_tree" model="ir.actions.act_window.view">
 
378
                        <field eval="1" name="sequence"/>
 
379
                        <field name="view_mode">tree</field>
 
380
                        <field name="view_id" ref="view_picking_ticket_tree"/>
 
381
                        <field name="act_window_id" ref="action_draft_picking_ticket"/>
 
382
                </record>
 
383
                <record id="action_draft_picking_ticket_form" model="ir.actions.act_window.view">
 
384
                        <field eval="2" name="sequence"/>
 
385
                        <field name="view_mode">form</field>
 
386
                        <field name="view_id" ref="view_picking_ticket_form"/>
 
387
                        <field name="act_window_id" ref="action_draft_picking_ticket"/>
 
388
                </record>
 
389
                <record id="action_draft_picking_ticket_cal" model="ir.actions.act_window.view">
 
390
                        <field eval="3" name="sequence"/>
 
391
                        <field name="view_mode">calendar</field>
 
392
                        <field name="act_window_id" ref="action_draft_picking_ticket"/>
 
393
                </record>
 
394
                <!-- <menuitem action="action_draft_picking_ticket" id="menu_action_draft_picking_ticket" parent="stock.menu_stock_warehouse_mgmt" sequence="4"/> -->
 
395
 
 
396
                <!-- Added 'subtype' in domain -->
 
397
                <record id="action_picking_ticket" model="ir.actions.act_window">
 
398
                        <field name="name">Picking Tickets</field>
 
399
                        <field name="res_model">stock.picking</field>
 
400
                        <field name="type">ir.actions.act_window</field>
 
401
                        <field name="view_type">form</field>
 
402
                        <field name="view_mode">tree,form,calendar</field>
 
403
                        <field name="domain">[('type','=','out'), ('subtype', '=', 'picking')]</field>
 
404
                        <field name="context">{'picking_screen':True, 'test':True, 'search_default_not_empty':1}</field>
 
405
                        <!-- <field name="context">{'picking_screen':True, 'test':True, 'group_by':'origin', 'search_default_not_empty':1}</field> -->
 
406
                        <field name="search_view_id" ref="view_picking_ticket_search"/>
 
407
                        <field name="help">This is the list of all picking tickets (draft and confirmed) that have to be prepared from sales orders.</field>
 
408
                </record>
 
409
                <record id="action_picking_ticket_tree" model="ir.actions.act_window.view">
 
410
                        <field eval="1" name="sequence"/>
 
411
                        <field name="view_mode">tree</field>
 
412
                        <field name="view_id" ref="view_picking_ticket_tree"/>
 
413
                        <field name="act_window_id" ref="action_picking_ticket"/>
 
414
                </record>
 
415
                <record id="action_picking_ticket_form" model="ir.actions.act_window.view">
 
416
                        <field eval="2" name="sequence"/>
 
417
                        <field name="view_mode">form</field>
 
418
                        <field name="view_id" ref="view_picking_ticket_form"/>
 
419
                        <field name="act_window_id" ref="action_picking_ticket"/>
 
420
                </record>
 
421
                <record id="action_picking_ticket_cal" model="ir.actions.act_window.view">
 
422
                        <field eval="3" name="sequence"/>
 
423
                        <field name="view_mode">calendar</field>
 
424
                        <field name="act_window_id" ref="action_picking_ticket"/>
 
425
                </record>
 
426
                <menuitem action="action_picking_ticket" id="menu_action_picking_ticket" parent="menu_warehouse_deliveries" sequence="4"/>
 
427
                <!-- Changed name to 'PPL' -->
 
428
                <record id="view_ppl_tree" model="ir.ui.view">
 
429
                        <field name="name">ppl.tree</field>
 
430
                        <field name="model">stock.picking</field>
 
431
                        <field name="type">tree</field>
 
432
                        <field name="arch" type="xml">
 
433
                                <tree hide_new_button="1" hide_delete_button="1" colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and min_date &lt; current_date" string="Pre-Packing Lists">
 
434
                                        <field name="name"/>
 
435
                                        <field name="partner_id2"/>
 
436
                                        <field name="origin"/>
 
437
                                        <field name="reason_type_id" />
 
438
                                        <field name="date"/>
 
439
                                        <field name="min_date" string="Expected Pack Date" />
 
440
                                        <field name="backorder_id" groups="base.group_extended"/>
 
441
                                        <field name="invoice_state"/>
 
442
                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
 
443
                                        <field name="state"/>
 
444
                                        <button name="ppl" states="assigned" string="Pack..." type="object" icon="terp-accessories-archiver"/>
 
445
                                </tree>
 
446
                        </field>
 
447
                </record>
 
448
                <!-- Remove 'Process Later' (draft_force_assign) and 'Process Now' (draft_validate) buttons -->
 
449
                <!-- 'Check Availability' button available for 'draft' state -->
 
450
                <!-- Changed name to 'PPL' -->
 
451
                <!-- Add 'Flow Type' drop down list -->
 
452
                <!-- TREE -->
 
453
                <!-- Remove 'Scrap Products' button -->
 
454
                <!-- Remove 'Scrapped' -->
 
455
                <!-- Remove 'Split in production lots' -->
 
456
                <!-- Remove 'Put in current pack' -->
 
457
                <!-- Remove 'Put in a new pack' -->
 
458
                <!-- Remove 'Process' at stock.move level -->
 
459
                <!-- FORM -->
 
460
                <!-- Remove 'Scrap' button -->
 
461
                <!-- Remove 'New Pack' -->
 
462
                <!-- Remove 'tracking_id' -->
 
463
                <!-- Remove 'Split' -->
 
464
                <!-- Remove 'Process' button -->
 
465
                <!-- Added Asset Id to move tree and form -->
 
466
                <record id="view_ppl_form" model="ir.ui.view">
 
467
                        <field name="name">ppl.form</field>
 
468
                        <field name="model">stock.picking</field>
 
469
                        <field name="type">form</field>
 
470
                        <!-- without priority 'view_picking_form' from stock is used -->
 
471
                        <!-- but then other form view also use it... -->
 
472
                        <!-- <field eval="11" name="priority"/> -->
 
473
                        <field name="arch" type="xml">
 
474
                                <form hide_new_button="1" hide_duplicate_button="1" hide_delete_button="1" string="Pre-Packing List">
 
475
                                        <group col="6" colspan="4">
 
476
                                                <group colspan="4" col="4">
 
477
                                                        <field name="name" readonly="1"/>
 
478
                                                        <field name="origin" readonly="1"/>
 
479
                                                        <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)"
 
480
                                                        required="1"
 
481
                                                        attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
 
482
                                                        <field name="address_id" colspan="2" context="{'contact_display':'partner'}" attrs="{'required': [('subtype', 'in', ('picking', 'ppl'))]}" />
 
483
                                                        <field name="invoice_state"/>
 
484
                                                        <field name="backorder_id" readonly="1" groups="base.group_extended"/>
 
485
                                                        <field name="num_of_packs" />
 
486
                                                        <field name="total_weight" />
 
487
                                                </group>
 
488
                                                <group colspan="2" col="2">
 
489
                                                        <field name="date"/>
 
490
                                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
 
491
                                                        <field name="min_date" string="Expected Pack Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
 
492
                                                        <field name="reason_type_id" widget="selection"/>
 
493
                                                        <field name="sale_id" invisible="True" />
 
494
                                                        <field name="subtype" invisible="True" />
 
495
                                                        <field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
 
496
                                                        <field name='ppl_customize_label' required="True" />
 
497
                                                </group>
 
498
                                        </group>
 
499
                                        <notebook colspan="4">
 
500
                                                <page string="Products">
 
501
                                                        <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}">
 
502
                                                                <tree string="Stock Moves">
 
503
                                                                        <field name="product_id"/>
 
504
                                                                        <field name="asset_id" />
 
505
                                                                        <field name="composition_list_id" />
 
506
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
 
507
                                                                        <field name="product_uom" string="UoM"/>
 
508
                                                                        <field name="product_uos" groups="product.group_uos"/>
 
509
                                                                        <field name="prodlot_id" string="Batch Number" groups="base.group_extended"/>
 
510
                                                                        <field name="expired_date" />
 
511
                                                                        <field name="kc_dg" />
 
512
                                                                        <field name="location_id" string="Src. Loc" />
 
513
                                                                        <field name="location_dest_id" string="Dest. Loc" />
 
514
                                                                        <field name="qty_per_pack" />
 
515
                                                                        <field name="from_pack" />
 
516
                                                                        <field name="to_pack" />
 
517
                                                                        <field name="date" string="Actual Pack Date" />
 
518
                                                                        <field name="state"/>
 
519
                                                                        <field name="lot_check" />
 
520
                                                                        <field name="exp_check" />
 
521
                                                                        <field name="kc_check" />
 
522
                                                                        <field name="ssl_check" invisible="True" />
 
523
                                                                        <field name="dg_check" />
 
524
                                                                        <field name="np_check" />
 
525
                                                                </tree>
 
526
                                                                <form string="Stock Moves">
 
527
                                                                        <group colspan="2" col="4">
 
528
                                                                                <separator colspan="4" string="Move Information"/>
 
529
                                                                                <field name="name" invisible="1" colspan="4" />
 
530
                                        <field name="product_id" context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': False}" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
 
531
                                                                                <field name="asset_id" />
 
532
                                        <field name="composition_list_id" invisible="True" />
 
533
                                                                                <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
 
534
                                                                                <field name="product_uom" string="Unit Of Measure" colspan="4" />
 
535
                                                                                <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" />
 
536
                                                                                <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
 
537
                                                                                <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" />
 
538
                                                                        </group>
 
539
                                                                        <group colspan="2" col="2">
 
540
                                                                                <separator string="Locations" colspan="2" />
 
541
                                                                                <field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False)]" readonly="1"
 
542
                                                                                context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
 
543
                                                                                <field name="location_dest_id" domain="[('usage','&lt;&gt;','view')]" on_change="location_dest_change(location_dest_id)" readonly="1" />
 
544
                                                                        </group>
 
545
                                                                        <group colspan="2" col="2">
 
546
                                                                                <separator string="Dates" colspan="2" />
 
547
                                                                                <field name="create_date" invisible="1"/>
 
548
                                                                                <field name="date" string="Actual Pack Date" />
 
549
                                                                                <field name="date_expected" string="Expected Pack Date" />
 
550
                                                                        </group>
 
551
                                                                        <group colspan="2" col="4" groups="base.group_extended">
 
552
                                                                                <field name="reason_type_id"  attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" widget="selection"/>
 
553
                                                                                <separator string="Traceability" colspan="4" groups="base.group_extended"/>
 
554
                                                                                <field name="prodlot_id" groups="base.group_extended"
 
555
                                                                                context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
 
556
                                                                                'search_default_real': True}"
 
557
                                                                                domain="[('product_id','=?',product_id), ('check_type','=', True)]"
 
558
                                                                                on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"
 
559
                                                                                attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
 
560
                                                                                <field name="hidden_batch_management_mandatory" invisible="True" />
 
561
                                                                                <field name="hidden_perishable_mandatory" invisible="True" />
 
562
                                                                                <field name="expired_date" />
 
563
                                                                                <field name="lot_check" />
 
564
                                                                                <field name="exp_check" />
 
565
                                                                                <field name="kc_check" />
 
566
                                                                                <field name="ssl_check" invisible="True" />
 
567
                                                                                <field name="dg_check" />
 
568
                                                                                <field name="np_check" />
 
569
                                                                        </group>
 
570
                                                                        <label string="" colspan="4"/>
 
571
                                                                        <field name="state"/>
 
572
                                                                        <group col="4" colspan="2">
 
573
                                                                                <button name="action_cancel" states="assigned" string="Cancel Move" type="object" icon="gtk-cancel"/>
 
574
                                                                                <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
 
575
                                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
 
576
                                                                                <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
 
577
                                                                        </group>
 
578
                                                                </form>
 
579
                                                        </field>
 
580
                                                        <group col="12" colspan="4">
 
581
                                                                <field name="state" readonly="1"/>
 
582
                                                                <field name="flow_type" />
 
583
                                                                <button name="return_products" string="Return Products..." states="confirmed,assigned" type="object" icon="gtk-undo"/>
 
584
                                                                <button name="action_assign" states="draft,confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
 
585
                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
 
586
                                                                <button name="ppl" states="assigned" string="Pack..." type="object" icon="terp-accessories-archiver"/>
 
587
                                                                <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"/>
 
588
                                                        </group>
 
589
                                                </page>
 
590
                                                <page string="Additional info" groups="base.group_extended,base.group_multi_company">
 
591
                                                        <field name="auto_picking" groups="base.group_extended"/>
 
592
                                                        <field name="date_done" groups="base.group_extended"/>
 
593
                                                        <field name="move_type" groups="base.group_extended"/>
 
594
                                                        <field name="type" groups="base.group_extended"/>
 
595
                                                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
 
596
                                                </page>
 
597
                                                <page string="Notes">
 
598
                                                        <field colspan="4" name="note" nolabel="1"/>
 
599
                                                </page>
 
600
                                        </notebook>
 
601
                                </form>
 
602
                        </field>
 
603
                </record>
 
604
                <!-- Changed name to 'PPL' -->
 
605
                <record id="view_ppl_search" model="ir.ui.view">
 
606
                        <field name="name">ppl.search</field>
 
607
                        <field name="model">stock.picking</field>
 
608
                        <field name="type">search</field>
 
609
                        <field name="arch" type="xml">
 
610
                                <search string="Pre-Packing List">
 
611
                                        <group col="8" colspan="4">
 
612
                                                <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
 
613
                                                <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
 
614
                                                <separator orientation="vertical"/>
 
615
                                                <field name="name"/>
 
616
                                                <field name="partner_id2" />
 
617
                                                <field name="origin"/>
 
618
                                                <field name="reason_type_id" widget="selection" />
 
619
                                                <field name="company_id" widget="selection" groups="base.group_multi_company"/>
 
620
                                        </group>
 
621
                                        <newline/>
 
622
                                        <group expand="0" string="Group By..." colspan="4" col="8">
 
623
                                                <filter string="Origin" name="origin" icon="terp-partner" domain="[]" context="{'group_by':'origin'}"/>
 
624
                                                <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
 
625
                                                <separator orientation="vertical" />
 
626
                                                <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
 
627
                                                <separator orientation="vertical" />
 
628
                                                <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
 
629
                                                <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
 
630
                                                <separator orientation="vertical" />
 
631
                                                <filter string="Reason Type" icon="terp-purchase" domain="[]" context="{'group_by':'reason_type_id'}"/>
 
632
                                        </group>
 
633
                                </search>
 
634
                        </field>
 
635
                </record>
 
636
                <!-- Added 'subtype' in domain -->
 
637
                <record id="action_ppl" model="ir.actions.act_window">
 
638
                        <field name="name">Pre-Packing Lists</field>
 
639
                        <field name="res_model">stock.picking</field>
 
640
                        <field name="type">ir.actions.act_window</field>
 
641
                        <field name="view_type">form</field>
 
642
                        <field name="view_mode">tree,form,calendar</field>
 
643
                        <field name="domain">[('type','=','out'), ('subtype', '=', 'ppl')]</field>
 
644
                        <field name="context">{'contact_display': 'partner_address', 'ppl_screen':True, 'search_default_available':1}</field>
 
645
                        <!-- <field name="context">{'contact_display': 'partner_address', 'ppl_screen':True, 'group_by':'origin', 'search_default_available':1}</field> -->
 
646
                        <field name="search_view_id" ref="view_ppl_search"/>
 
647
                        <field name="help">This is the list of all ppl that have been picked.</field>
 
648
                </record>
 
649
                <record id="action_ppl_tree" model="ir.actions.act_window.view">
 
650
                        <field eval="1" name="sequence"/>
 
651
                        <field name="view_mode">tree</field>
 
652
                        <field name="view_id" ref="view_ppl_tree"/>
 
653
                        <field name="act_window_id" ref="action_ppl"/>
 
654
                </record>
 
655
                <record id="action_ppl_form" model="ir.actions.act_window.view">
 
656
                        <field eval="2" name="sequence"/>
 
657
                        <field name="view_mode">form</field>
 
658
                        <field name="view_id" ref="view_ppl_form"/>
 
659
                        <field name="act_window_id" ref="action_ppl"/>
 
660
                </record>
 
661
                <record id="action_ppl_cal" model="ir.actions.act_window.view">
 
662
                        <field eval="3" name="sequence"/>
 
663
                        <field name="view_mode">calendar</field>
 
664
                        <field name="act_window_id" ref="action_ppl"/>
 
665
                </record>
 
666
                <menuitem action="action_ppl" id="menu_action_ppl" parent="menu_warehouse_deliveries" sequence="5"/>
 
667
                <!-- Changed name to 'Packing' -->
 
668
                <record id="view_packing_tree" model="ir.ui.view">
 
669
                        <field name="name">packing.tree</field>
 
670
                        <field name="model">stock.picking</field>
 
671
                        <field name="type">tree</field>
 
672
                        <field name="arch" type="xml">
 
673
                                <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date &lt; current_date" string="Packing">
 
674
                                        <field name="name"/>
 
675
                                        <field name="partner_id2"/>
 
676
                                        <field name="origin"/>
 
677
                                        <field name="reason_type_id" />
 
678
                                        <field name="date"/>
 
679
                                        <field name="min_date"/>
 
680
                                        <field name="backorder_id" groups="base.group_extended"/>
 
681
                                        <field name="invoice_state"/>
 
682
                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
 
683
                                        <field name="state"/>
 
684
                                </tree>
 
685
                        </field>
 
686
                </record>
 
687
                <!-- Remove 'Process Later' (draft_force_assign) and 'Process Now' (draft_validate) buttons -->
 
688
                <!-- 'Check Availability' button available for 'draft' state -->
 
689
                <!-- Changed name to 'Packing' -->
 
690
                <!-- Add 'Flow Type' drop down list -->
 
691
                <!-- TREE -->
 
692
                <!-- Remove 'Scrap Products' button -->
 
693
                <!-- Remove 'Scrapped' -->
 
694
                <!-- Remove 'Split in production lots' -->
 
695
                <!-- Remove 'Put in current pack' -->
 
696
                <!-- Remove 'Put in a new pack' -->
 
697
                <!-- Remove 'Process' at stock.move level -->
 
698
                <!-- FORM -->
 
699
                <!-- Remove 'Scrap' button -->
 
700
                <!-- Remove 'New Pack' -->
 
701
                <!-- Remove 'tracking_id' -->
 
702
                <!-- Remove 'Split' -->
 
703
                <!-- Remove 'Process' button -->
 
704
                <!-- Added Asset Id to move tree and form -->
 
705
                <record id="view_packing_form" model="ir.ui.view">
 
706
                        <field name="name">packing.form</field>
 
707
                        <field name="model">stock.picking</field>
 
708
                        <field name="type">form</field>
 
709
                        <!-- without priority 'view_picking_form' from stock is used -->
 
710
                        <!-- but then other form view also use it... -->
 
711
                        <!-- <field eval="11" name="priority"/> -->
 
712
                        <field name="arch" type="xml">
 
713
                                <form string="Packing">
 
714
                                        <group col="6" colspan="4">
 
715
                                                <group colspan="4" col="4">
 
716
                                                        <field name="name" readonly="1"/>
 
717
                                                        <field name="origin" readonly="1"/>
 
718
                                                        <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)"
 
719
                                                        required="1"
 
720
                                                        attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
 
721
                                                        <field name="address_id" colspan="2" context="{'contact_display':'partner'}" />
 
722
                                                        <field name="invoice_state"/>
 
723
                                                        <field name="backorder_id" readonly="1" groups="base.group_extended"/>
 
724
                                                        <field name="shipment_id" readonly="True" />
 
725
                                                </group>
 
726
                                                <group colspan="2" col="2">
 
727
                                                        <field name="date"/>
 
728
                                                        <field name="min_date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
 
729
                                                        <field name="stock_journal_id" groups="base.group_extended" widget="selection" invisible="True" />
 
730
                                                        <field name="reason_type_id" widget="selection"/>
 
731
                                                        <field name="sale_id" invisible="True" />
 
732
                                                        <field name="subtype" invisible="True" />
 
733
                                                        <field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
 
734
                                                </group>
 
735
                                        </group>
 
736
                                        <notebook colspan="4">
 
737
                                                <page string="Products">
 
738
                                                        <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}">
 
739
                                                                <tree string="Stock Moves">
 
740
                                                                        <field name="product_id"/>
 
741
                                                                        <field name="asset_id" />
 
742
                                                                        <field name="composition_list_id" />
 
743
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
 
744
                                                                        <field name="product_uom" string="UoM"/>
 
745
                                                                        <field name="product_uos" groups="product.group_uos"/>
 
746
                                                                        <field name="prodlot_id" string="Batch Number" groups="base.group_extended"/>
 
747
                                                                        <field name="expired_date" />
 
748
                                                                        <field name="kc_dg" />
 
749
                                                                        <field name="location_id" string="Src. Loc" />
 
750
                                                                        <field name="location_dest_id" string="Dest. Loc" />
 
751
                                                                        <field name="qty_per_pack" />
 
752
                                                                        <field name="from_pack" />
 
753
                                                                        <field name="to_pack" />
 
754
                                                                        <field name="num_of_packs" />
 
755
                                                                        <field name="total_amount" />
 
756
                                                                        <field name="currency_id" />
 
757
                                                                        <field name="date"/>
 
758
                                                                        <field name="state"/>
 
759
                                                                        <field name="lot_check" />
 
760
                                                                        <field name="exp_check" />
 
761
                                                                        <field name="kc_check" />
 
762
                                                                        <field name="ssl_check" invisible="True" />
 
763
                                                                        <field name="dg_check" />
 
764
                                                                        <field name="np_check" />
 
765
                                                                </tree>
 
766
                                                                <form string="Stock Moves">
 
767
                                                                        <group colspan="2" col="4">
 
768
                                                                                <separator colspan="4" string="Move Information"/>
 
769
                                                                                <field name="name" invisible="1" colspan="4" />
 
770
                                        <field name="product_id" context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': False}" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
 
771
                                                                                <field name="asset_id" />
 
772
                                        <field name="composition_list_id" invisible="True" />
 
773
                                                                                <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
 
774
                                                                                <field name="product_uom" string="Unit Of Measure" colspan="4" />
 
775
                                                                                <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" />
 
776
                                                                                <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
 
777
                                                                                <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" />
 
778
                                                                        </group>
 
779
                                                                        <group colspan="2" col="2">
 
780
                                                                                <separator string="Locations" colspan="2" />
 
781
                                                                                <field name="location_id" domain="[('usage','=','internal'), ('quarantine_location', '=', False)]"
 
782
                                                                                context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
 
783
                                                                                <field name="location_dest_id" domain="[('usage','&lt;&gt;','view')]" on_change="location_dest_change(location_dest_id)" />
 
784
                                                                        </group>
 
785
                                                                        <group colspan="2" col="2">
 
786
                                                                                <separator string="Dates" colspan="2" />
 
787
                                                                                <field name="create_date" invisible="1"/>
 
788
                                                                                <field name="date"/>
 
789
                                                                                <field name="date_expected"/>
 
790
                                                                        </group>
 
791
                                                                        <group colspan="2" col="4" groups="base.group_extended">
 
792
                                                                                <separator string="Traceability" colspan="4" groups="base.group_extended"/>
 
793
                                                                                <field name="reason_type_id"  attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" widget="selection"/>
 
794
                                                                                <field name="prodlot_id" groups="base.group_extended"
 
795
                                                                                context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
 
796
                                                                                'search_default_real': True}"
 
797
                                                                                domain="[('product_id','=?',product_id), ('check_type','=', True)]"
 
798
                                                                                on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"
 
799
                                                                                attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
 
800
                                                                                <field name="hidden_batch_management_mandatory" invisible="True" />
 
801
                                                                                <field name="hidden_perishable_mandatory" invisible="True" />
 
802
                                                                                <field name="expired_date" />
 
803
                                                                                <field name="lot_check" />
 
804
                                                                                <field name="exp_check" />
 
805
                                                                                <field name="kc_check" />
 
806
                                                                                <field name="ssl_check" invisible="True" />
 
807
                                                                                <field name="dg_check" />
 
808
                                                                                <field name="np_check" />
 
809
                                                                        </group>
 
810
                                                                        <label string="" colspan="4"/>
 
811
                                                                        <field name="state"/>
 
812
                                                                        <group col="4" colspan="2">
 
813
                                                                                <button name="action_cancel" states="assigned" string="Cancel Move" type="object" icon="gtk-cancel"/>
 
814
                                                                                <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
 
815
                                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
 
816
                                                                                <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
 
817
                                                                        </group>
 
818
                                                                </form>
 
819
                                                        </field>
 
820
                                                        <group col="12" colspan="4">
 
821
                                                                <field name="state" readonly="1"/>
 
822
                                                                <field name="flow_type" />
 
823
                                                                <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel Picking" icon="gtk-cancel"/>
 
824
                                                                <button name="action_assign" states="draft,confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
 
825
                                                                <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
 
826
                                                                <button name="packing" states="assigned" string="Pack..." type="object" icon="gtk-go-forward"/>
 
827
                                                                <button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
 
828
                                                                <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"/>
 
829
                                                        </group>
 
830
                                                </page>
 
831
                                                <page string="Additional info" groups="base.group_extended,base.group_multi_company">
 
832
                                                        <field name="auto_picking" groups="base.group_extended"/>
 
833
                                                        <field name="date_done" groups="base.group_extended"/>
 
834
                                                        <field name="move_type" groups="base.group_extended"/>
 
835
                                                        <field name="type" groups="base.group_extended"/>
 
836
                                                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
 
837
                                                </page>
 
838
                                                <page string="Notes">
 
839
                                                        <field colspan="4" name="note" nolabel="1"/>
 
840
                                                </page>
 
841
                                        </notebook>
 
842
                                </form>
 
843
                        </field>
 
844
                </record>
 
845
                <!-- Changed name to 'Packing' -->
 
846
                <record id="view_packing_search" model="ir.ui.view">
 
847
                        <field name="name">packing.search</field>
 
848
                        <field name="model">stock.picking</field>
 
849
                        <field name="type">search</field>
 
850
                        <field name="arch" type="xml">
 
851
                                <search string="Packing">
 
852
                                        <group col="8" colspan="4">
 
853
                                                <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
 
854
                                                <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Delivery Orders"/>
 
855
                                                <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
 
856
                                                <separator orientation="vertical"/>
 
857
                                                <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
 
858
                                                <separator orientation="vertical"/>
 
859
                                                <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
 
860
                                                <separator orientation="vertical"/>
 
861
                                                <field name="name"/>
 
862
                                                <field name="partner_id2" />
 
863
                                                <field name="origin"/>
 
864
                                                <field name="reason_type_id" widget="selection"/>
 
865
                                                <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
 
866
                                                <field name="company_id" widget="selection" groups="base.group_multi_company"/>
 
867
                                        </group>
 
868
                                        <newline/>
 
869
                                        <group expand="0" string="Group By..." colspan="4" col="8">
 
870
                                                <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
 
871
                                                <separator orientation="vertical" />
 
872
                                                <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
 
873
                                                <separator orientation="vertical" />
 
874
                                                <filter string="Reason Type" icon="terp-purchase" domain="[]" context="{'group_by':'reason_type_id'}"/>
 
875
                                                <separator orientation="vertical" />
 
876
                                                <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
 
877
                                                <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
 
878
                                                <separator orientation="vertical" />
 
879
                                                <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
 
880
                                        </group>
 
881
                                </search>
 
882
                        </field>
 
883
                </record>
 
884
                <!-- Added 'subtype' in domain -->
 
885
                <record id="action_packing" model="ir.actions.act_window">
 
886
                        <field name="name">Packing (debug)</field>
 
887
                        <field name="res_model">stock.picking</field>
 
888
                        <field name="type">ir.actions.act_window</field>
 
889
                        <field name="view_type">form</field>
 
890
                        <field name="view_mode">tree,form,calendar</field>
 
891
                        <field name="domain">[('type','=','out'), ('subtype', '=', 'packing')]</field>
 
892
                        <field name="context">{'contact_display': 'partner_address'}</field>
 
893
                        <field name="search_view_id" ref="view_packing_search"/>
 
894
                        <field name="help">This is the list of all packing that have been picked.</field>
 
895
                </record>
 
896
                <record id="action_packing_tree" model="ir.actions.act_window.view">
 
897
                        <field eval="1" name="sequence"/>
 
898
                        <field name="view_mode">tree</field>
 
899
                        <field name="view_id" ref="view_packing_tree"/>
 
900
                        <field name="act_window_id" ref="action_packing"/>
 
901
                </record>
 
902
                <record id="action_packing_form" model="ir.actions.act_window.view">
 
903
                        <field eval="2" name="sequence"/>
 
904
                        <field name="view_mode">form</field>
 
905
                        <field name="view_id" ref="view_packing_form"/>
 
906
                        <field name="act_window_id" ref="action_packing"/>
 
907
                </record>
 
908
                <record id="action_packing_cal" model="ir.actions.act_window.view">
 
909
                        <field eval="3" name="sequence"/>
 
910
                        <field name="view_mode">calendar</field>
 
911
                        <field name="act_window_id" ref="action_packing"/>
 
912
                </record>
 
913
                <!-- <menuitem action="action_packing" id="menu_action_packing" parent="stock.menu_stock_warehouse_mgmt" sequence="6"/> -->
 
914
 
 
915
                <!-- Shipment -->
 
916
                <record id="view_shipment_tree" model="ir.ui.view">
 
917
                        <field name="name">shipment.tree</field>
 
918
                        <field name="model">shipment</field>
 
919
                        <field name="type">tree</field>
 
920
                        <field name="arch" type="xml">
 
921
                                <tree string="Shipment" hide_new_button="1" hide_delete_button="1" colors="blue:state in ['draft'];grey:state in ['cancel'];red:state not in ['cancel', 'done'] and shipment_expected_date &lt; current_date;black:state in ['done'];green: state in ['delivered']">
 
922
                                        <field name="name"/>
 
923
                                        <field name="partner_id2"/>
 
924
                                        <field name="address_id"/>
 
925
                                        <field name="total_amount" />
 
926
                                        <field name="currency_id" />
 
927
                                        <field name="num_of_packs" />
 
928
                                        <field name="total_weight" />
 
929
                                        <field name="date" />
 
930
                                        <field name="shipment_expected_date" />
 
931
                                        <field name="state"/>
 
932
                                        <button name="create_shipment" states="draft" string="Create Shipment..." type="object" icon="gtk-add"/>
 
933
                                        <button name="ship" states="packed" string="Ship" type="object" icon="gtk-redo"/>
 
934
                                        <button name="validate" states="shipped" string="Validate" type="object" icon="gtk-apply"/>
 
935
                                </tree>
 
936
                        </field>
 
937
                </record>
 
938
                <record id="view_shipment_form" model="ir.ui.view">
 
939
                        <field name="name">shipment.form</field>
 
940
                        <field name="model">shipment</field>
 
941
                        <field name="type">form</field>
 
942
                        <field name="arch" type="xml">
 
943
                                <form string="Shipment" hide_new_button="1" hide_duplicate_button="1" hide_delete_button="1">
 
944
                                        <group col="6" colspan="4">
 
945
                                                <group colspan="4" col="4">
 
946
                                                        <field name="name" readonly="1"/>
 
947
                                                        <field name="date" readonly="True" />
 
948
                                                        <field name="shipment_actual_date" />
 
949
                                                        <field name="shipment_expected_date" attrs="{'readonly': [('state', 'not in', ('draft', 'packed'))]}" />
 
950
                                                        <field name="transport_type" />
 
951
                                                        <field name="backshipment_id" readonly="True" />
 
952
                                                        <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)"
 
953
                                                                required="1"
 
954
                                                                attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
 
955
                                                        <field name="address_id" context="{'contact_display':'partner'}" />
 
956
                                                </group>
 
957
                                        </group>
 
958
                                        <notebook colspan="4">
 
959
                                                <page string="Pack Families">
 
960
                                                        <field colspan="4" name="pack_family_memory_ids" nolabel="1" widget="one2many_list" readonly="True">
 
961
                                                                <tree string="Pack Families">
 
962
                                                                        <field name="sale_order_id"/>
 
963
                                                                        <field name="ppl_id" />
 
964
                                                                        <field name="from_pack"/>
 
965
                                                                        <field name="to_pack"/>
 
966
                                                                        <field name="num_of_packs" />
 
967
                                                                        <field name="pack_type"/>
 
968
                                                                        <field name="weight"/>
 
969
                                                                        <field name="total_weight" />
 
970
                                                                        <field name="amount" />
 
971
                                                                        <field name="total_amount" />
 
972
                                                                        <field name="currency_id" />
 
973
                                                                        <field name="location_id" />
 
974
                                                                        <field name="location_dest_id" />
 
975
                                                                        <field name="state" />
 
976
                                                                </tree>
 
977
                                                                <form>
 
978
                                                                        <field name="sale_order_id"/>
 
979
                                                                        <field name="ppl_id" />
 
980
                                                                        <field name="from_pack"/>
 
981
                                                                        <field name="to_pack"/>
 
982
                                                                        <field name="num_of_packs" />
 
983
                                                                        <field name="pack_type"/>
 
984
                                                                        <field name="weight"/>
 
985
                                                                        <field name="total_weight" />
 
986
                                                                        <field name="amount" />
 
987
                                                                        <field name="total_amount" />
 
988
                                                                        <field name="currency_id" />
 
989
                                                                        <field name="location_id" />
 
990
                                                                        <field name="location_dest_id" />
 
991
                                                                        <field name="state" />
 
992
                                                                        <field name="move_lines" nolabel="True" colspan="4">
 
993
                                                                                <tree editable="bottom">
 
994
                                                                                        <field name="name" />
 
995
                                                                                        <field name="origin" />
 
996
                                                                                        <field name="product_id" />
 
997
                                                                                        <field name="prodlot_id" />
 
998
                                                                                        <field name="expired_date" />
 
999
                                                                                        <field name="product_qty" />
 
1000
                                                                                        <field name="product_uom" />
 
1001
                                                                                        <field name="location_id" />
 
1002
                                                                                        <field name="location_dest_id" />
 
1003
                                                                                        <field name="state" />
 
1004
                                                                                </tree>
 
1005
                                                                        </field>
 
1006
                                                                </form>
 
1007
                                                        </field>
 
1008
                                                        <group col="12" colspan="4">
 
1009
                                                                <field name="state" readonly="1"/>
 
1010
                                                                <button name="return_packs" states="draft" string="Return Packs to Stock..." type="object" icon="gtk-undo"/>
 
1011
                                                                <button name="create_shipment" states="draft" string="Create Shipment..." type="object" groups="base.group_extended" icon="gtk-add" />
 
1012
                                                                <button name="action_cancel" states="packed" string="Cancel Shipment" type="object" groups="base.group_extended" icon="gtk-cancel" />
 
1013
                                                                <button name="ship" states="packed" string="Ship" type="object" groups="base.group_extended" icon="gtk-redo" />
 
1014
                                                                <button name="return_packs_from_shipment" states="shipped" string="Return Packs from Shipment..." type="object" icon="gtk-undo"/>
 
1015
                                                                <button name="validate" states="shipped" string="Validate" type="object" groups="base.group_extended" icon="gtk-apply" />
 
1016
                                                                <button name="set_delivered" icon="gtk-apply" type="object" string="Validate Delivery" attrs="{'invisible': [('state', '!=', 'done')]}" />
 
1017
                                                        </group>
 
1018
                                                </page>
 
1019
                                                <page string="Document Information">
 
1020
                                                        <field name="cargo_manifest_reference" />
 
1021
                                                        <field name="date_of_departure" />
 
1022
                                                        <field name="planned_date_of_arrival" />
 
1023
                                                        <field name="transit_via" />
 
1024
                                                        <field name="registration" />
 
1025
                                                        <field name="driver_name" />
 
1026
                                                </page>
 
1027
                                                <page string="Transport Information">
 
1028
                                                        <group col="2" colspan="1">
 
1029
                                                                <separator string="Shipper" colspan="2" />
 
1030
                                                                <field name="shipper_name" />
 
1031
                                                                <field name="shipper_address" />
 
1032
                                                                <field name="shipper_phone" />
 
1033
                                                                <field name="shipper_email" />
 
1034
                                                                <field name="shipper_other" />
 
1035
                                                                <field name="shipper_date" />
 
1036
                                                        </group>
 
1037
                                                        <group col="2" colspan="1">
 
1038
                                                                <separator string="Carrier" colspan="2" />
 
1039
                                                                <field name="carrier_name" />
 
1040
                                                                <field name="carrier_address" />
 
1041
                                                                <field name="carrier_phone" />
 
1042
                                                                <field name="carrier_email" />
 
1043
                                                                <field name="carrier_other" />
 
1044
                                                                <field name="carrier_date" />
 
1045
                                                        </group>
 
1046
                                                        <group col="2" colspan="1">
 
1047
                                                                <separator string="Consignee" colspan="2" />
 
1048
                                                                <field name="consignee_name" />
 
1049
                                                                <field name="consignee_address" />
 
1050
                                                                <field name="consignee_phone" />
 
1051
                                                                <field name="consignee_email" />
 
1052
                                                                <field name="consignee_other" />
 
1053
                                                                <field name="consignee_date" />
 
1054
                                                        </group>
 
1055
                                                </page>
 
1056
                                        </notebook>
 
1057
                                </form>
 
1058
                        </field>
 
1059
                </record>
 
1060
                <!-- Changed name to 'Shipment' -->
 
1061
                <record id="view_shipment_search" model="ir.ui.view">
 
1062
                        <field name="name">shipment.search</field>
 
1063
                        <field name="model">shipment</field>
 
1064
                        <field name="type">search</field>
 
1065
                        <field name="arch" type="xml">
 
1066
                                <search string="Shipment">
 
1067
                                        <group col="8" colspan="4">
 
1068
                                                <filter icon="terp-document-new" name="draft" string="Draft" domain="[('state','=','draft')]" />
 
1069
                                                <filter icon="terp-check" name="shipped" string="Shipped" domain="[('state','=','shipped')]" />
 
1070
                                                <filter icon="terp-dialog-close" name="closed" string="Closed" domain="[('state','=','done')]" />
 
1071
                                                <filter icon="gtk-yes" name="delivered" string="Delivered" domain="[('state','=','delivered')]" />
 
1072
                                                <separator orientation="vertical"/>
 
1073
                                                <filter icon="terp-folder-orange" name="empty" string="Empty" domain="[('num_of_packs','=', 0)]" />
 
1074
                                                <filter icon="terp-folder-green" name="not_empty" string="Not Empty" domain="[('num_of_packs','!=', 0)]" />
 
1075
                                                <separator orientation="vertical"/>
 
1076
                                                <field name="name"/>
 
1077
                                                <field name="partner_id2" />
 
1078
                                        </group>
 
1079
                                        <newline/>
 
1080
                                        <group expand="0" string="Group By..." colspan="4" col="8">
 
1081
                                                <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
 
1082
                                                <separator orientation="vertical" />
 
1083
                                                <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
 
1084
                                        </group>
 
1085
                                </search>
 
1086
                        </field>
 
1087
                </record>
 
1088
                <!-- Added 'subtype' in domain -->
 
1089
                <record id="action_shipment" model="ir.actions.act_window">
 
1090
                        <field name="name">Packing Lists</field>
 
1091
                        <field name="res_model">shipment</field>
 
1092
                        <field name="type">ir.actions.act_window</field>
 
1093
                        <field name="view_type">form</field>
 
1094
                        <field name="view_mode">tree,form,calendar</field>
 
1095
                        <field name="domain">[]</field>
 
1096
                        <field name="context">{'search_default_not_empty':1}</field>
 
1097
                        <field name="search_view_id" ref="view_shipment_search"/>
 
1098
                        <field name="help">This is the list of all packing lists that have been picked. The packing lists are regrouped by address.</field>
 
1099
                </record>
 
1100
                <record id="action_shipment_tree" model="ir.actions.act_window.view">
 
1101
                        <field eval="1" name="sequence"/>
 
1102
                        <field name="view_mode">tree</field>
 
1103
                        <field name="view_id" ref="view_shipment_tree"/>
 
1104
                        <field name="act_window_id" ref="action_shipment"/>
 
1105
                </record>
 
1106
                <record id="action_shipment_form" model="ir.actions.act_window.view">
 
1107
                        <field eval="2" name="sequence"/>
 
1108
                        <field name="view_mode">form</field>
 
1109
                        <field name="view_id" ref="view_shipment_form"/>
 
1110
                        <field name="act_window_id" ref="action_shipment"/>
 
1111
                </record>
 
1112
                <record id="action_shipment_cal" model="ir.actions.act_window.view">
 
1113
                        <field eval="3" name="sequence"/>
 
1114
                        <field name="view_mode">calendar</field>
 
1115
                        <field name="act_window_id" ref="action_shipment"/>
 
1116
                </record>
 
1117
                <menuitem action="action_shipment" id="menu_action_shipment" parent="menu_warehouse_deliveries" sequence="6"/>
 
1118
                <!--
 
1119
                <record id="action_create_shipment_wizard" model="ir.actions.act_window">
 
1120
                <field name="name">Create Packing List</field>
 
1121
                <field name="res_model">shipment.wizard</field>
 
1122
                <field name="view_type">form</field>
 
1123
                <field name="view_mode">form</field>
 
1124
                <field name="target">new</field>
 
1125
                <field name="context">{'step':'create'}</field>
 
1126
                </record>
 
1127
 
 
1128
                <menuitem action="action_create_shipment_wizard"
 
1129
                id="menu_create_shipment"
 
1130
                parent="stock.menu_stock_warehouse_mgmt" />
 
1131
                -->
 
1132
 
 
1133
        </data>
 
1134
</openerp>