[imp]improved warhouse
[odoo/odoo.git] / addons / stock / wizard / stock_move_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <!--  Consume, scrap move -->
5
6         <record id="view_stock_move_consume_wizard" model="ir.ui.view">
7             <field name="name">Consume Move</field>
8             <field name="model">stock.move.consume</field>
9             <field name="type">form</field>
10             <field name="arch" type="xml">
11                 <form string="Consume Move">
12                     <separator string="Consume Products" colspan="4"/>
13                     <field name="product_id" colspan="4" readonly="1"/>
14                     <field name="location_id" colspan="4" />
15                     <field name="product_qty" colspan="2"/>
16                     <field name="product_uom" nolabel="1" readonly="1"/>
17                     <newline/>
18                     <separator string="" colspan="4" />
19                     <label string="" colspan="2" />
20                     <group col="2" colspan="1">
21                         <button icon='gtk-cancel' special="cancel"
22                             string="Cancel" />
23                         <button name="do_move_consume" string="Ok"
24                             colspan="1" type="object" icon="gtk-ok" />
25                     </group>
26                 </form>
27             </field>
28         </record>
29
30         <record id="move_consume" model="ir.actions.act_window">
31             <field name="name">Consume Move</field>
32             <field name="type">ir.actions.act_window</field>
33             <field name="res_model">stock.move.consume</field>
34             <field name="view_type">form</field>
35             <field name="view_mode">form</field>
36             <field name="target">new</field>
37         </record>
38
39        <record id="view_stock_move_scrap_wizard" model="ir.ui.view">
40             <field name="name">Scrap Move</field>
41             <field name="model">stock.move.scrap</field>
42             <field name="type">form</field>
43             <field name="arch" type="xml">
44                 <form string="Scrap Move">
45                     <separator string="Scrap Products" colspan="4"/>
46                     <field name="product_id" colspan="4" readonly="1"/>
47                     <field name="location_id" colspan="4" string="Scrap Location" domain="[('usage','&lt;&gt;','view'),('scrap_location','=',True)]" widget="selection"/>
48                     <field name="product_qty" colspan="2"/>
49                     <field name="product_uom" nolabel="1" readonly="1"/>
50                     <newline/>
51                     <separator string="" colspan="4" />
52                     <label string="" colspan="2" />
53                     <group col="2" colspan="1">
54                         <button icon='gtk-cancel' special="cancel"
55                             string="Cancel" />
56                         <button name="move_scrap" string="Ok"
57                             colspan="1" type="object" icon="gtk-ok" />
58                     </group>
59                 </form>
60             </field>
61         </record>
62
63         <record id="move_scrap" model="ir.actions.act_window">
64             <field name="name">Scrap Move</field>
65             <field name="type">ir.actions.act_window</field>
66             <field name="res_model">stock.move.scrap</field>
67             <field name="view_type">form</field>
68             <field name="view_mode">form</field>
69             <field name="target">new</field>
70         </record>
71
72         <record id="view_split_in_lots" model="ir.ui.view">
73                     <field name="name">Split in lots</field>
74                     <field name="model">stock.move.split</field>
75                     <field name="type">form</field>
76                     <field name="arch" type="xml">
77                                 <form string="Split in lots">
78                                 <group width="660" height="275">
79                   <field name="product_id" colspan="4" readonly="1"/>
80                   <newline/>
81                   <group colspan="4" col="4">
82                       <group colspan="1" col="2">
83                           <field name="use_exist"/>
84                       </group>
85                       <group colspan="1" col="2">
86                           <field name="qty" readonly="1"/>
87                        </group>
88                       <group colspan="1" col="2">
89                           <field name="product_uom" readonly="1"/>
90                       </group>
91                   </group>
92                   <field name="location_id" invisible="1"/>
93
94                   <group colspan="4" attrs="{'invisible':[('use_exist','=',True)]}">
95                         <field name="line_ids" colspan="4" nolabel="1">
96                             <tree string="Production Lot Numbers" editable="bottom">
97                                 <field name="name" string="Lots"/>
98                                 <field name="quantity" />
99                             </tree>
100                             <form string="Production Lot Number">
101                                 <field name="name" string="Lot number"/>
102                                 <field name="quantity" />
103                             </form>
104                         </field>
105                     </group>
106                   <group colspan="4" attrs="{'invisible':[('use_exist','!=',True)]}">
107                         <field name="line_exist_ids" colspan="4" nolabel="1">
108                             <tree string="Production Lot Numbers" editable="bottom">
109                                 <field name="prodlot_id" string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
110                                 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
111                             </tree>
112                             <form string="Production Lot Number">
113                                 <field name="prodlot_id" string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
114                                 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
115                             </form>
116                         </field>
117                     </group>
118                                 <separator string="" colspan="4" />
119                                 <label string="" colspan="2" />
120                                 <button icon='gtk-cancel' special="cancel"
121                                         string="Cancel" />
122                                 <button name="split_lot" string="Ok"
123                                         type="object" icon="gtk-ok" />
124                                         </group>
125                         </form>
126                     </field>
127                 </record>
128
129                 <record id="track_line" model="ir.actions.act_window">
130                     <field name="name">Split in lots</field>
131                     <field name="type">ir.actions.act_window</field>
132                     <field name="res_model">stock.move.split</field>
133                     <field name="view_type">form</field>
134                     <field name="view_mode">form</field>
135                     <field name="target">new</field>
136                 </record>
137
138         </data>
139 </openerp>