[IMP] stock: pass product_id to set related product in serial number form.
[odoo/odoo.git] / addons / stock / wizard / stock_partial_picking_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="action_partial_picking" model="ir.actions.act_window">
5             <field name="name">Process Picking</field>
6             <field name="res_model">stock.partial.picking</field>
7             <field name="view_type">form</field>
8             <field name="view_mode">form</field>
9             <field name="target">new</field>
10         </record>
11
12         <!-- this view of stock.partial.picking wizard is dedicated to internal picking. The fields_view_get is ovveridden in order to change the label of the process button and the separator. -->
13         <record id="stock_partial_picking_form" model="ir.ui.view">
14             <field name="name">stock.partial.picking.form</field>
15             <field name="model">stock.partial.picking</field>
16             <field name="arch" type="xml">
17                 <form string="Stock partial Picking" version="7.0">
18                     <field name="hide_tracking" invisible="1"/>
19                     <separator string="Transfer Products" name="product_separator"/>
20                     <field name="move_ids" context="{'hide_tracking': hide_tracking}">
21                         <tree editable="bottom" string="Product Moves">
22                             <field name="product_id" on_change="onchange_product_id(product_id)"/>
23                             <field name="quantity" />
24                             <field name="product_uom" groups="product.group_uom"/>
25                             <field name="tracking" invisible="1"/>
26                             <field name="prodlot_id" context="{'product_id':product_id}" domain="[('product_id', '=', product_id)]" invisible="context.get('hide_tracking',False)" attrs="{'required':[('tracking','=',True)]}" groups="stock.group_production_lot"/>
27                             <!-- Removed as this feature is not logic: price must be updated upon reception of invoice -->
28                             <field name="update_cost" invisible="1"/>
29                             <field name="cost"  invisible="1"/>
30                             <field name="currency"  invisible="1"/>
31                         </tree>
32                     </field>
33                     <footer>
34                         <button name="do_partial" string="_Transfer" type="object" class="oe_highlight"/>
35                         or
36                         <button string="Cancel" class="oe_link" special="cancel" />
37                     </footer>
38                 </form>
39             </field>
40         </record>
41
42         <record id="stock_partial_picking_line_list" model="ir.ui.view">
43             <field name="name">stock.partial.picking.line.list</field>
44             <field name="model">stock.partial.picking.line</field>
45             <field name="arch" type="xml">
46                 <tree editable="bottom" string="Product Moves">
47                     <field name="product_id" />
48                     <field name="quantity" />
49                     <field name="product_uom" />
50                     <field name="tracking" invisible="1"/>
51                     <field name="prodlot_id" domain="[('product_id', '=', product_id)]" attrs="{'required':[('tracking','=',True)]}"/>
52                     <!-- Removed as this feature is not logic: price must be updated upon reception of invoice -->
53                     <field name="update_cost" invisible="1"/>
54                     <field name="cost" invisible="1"/>
55                     <field name="currency" invisible="1"/>
56                 </tree>
57             </field>
58         </record>
59         <record id="stock_partial_picking_line_form" model="ir.ui.view">
60             <field name="name">stock.partial.picking.line.form</field>
61             <field name="model">stock.partial.picking.line</field>
62             <field name="arch" type="xml">
63                 <form string="Stock Picking Line" version="7.0">
64                     <group col="4">
65                         <field name="product_id" />
66                         <field name="quantity" />
67                         <field name="product_uom" />
68                         <field name="location_id" />
69                         <field name="location_dest_id" />
70                         <field name="tracking" invisible="1"/>
71                         <field name="prodlot_id" domain="[('product_id', '=', product_id)]" attrs="{'required':[('tracking','=',True)]}"/>
72                         <field name="update_cost" invisible="1"/>
73                         <field name="cost" attrs="{'invisible': [('update_cost','=', False)]}"/>
74                         <field name="currency" attrs="{'invisible': [('update_cost','=', False)]}" groups="base.group_multi_currency"/>
75                     </group>
76                  </form>
77             </field>
78         </record>
79     </data>
80 </openerp>