[IMP] stock: change string for ok button & add cancel button in wizard
[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="arch" type="xml">
10                 <form string="Consume Move" version="7.0">
11                     <group string="Consume Products">
12                         <field name="product_id" readonly="1"/>
13                         <label for="product_qty"/>
14                         <div>
15                             <field name="product_qty" class="oe_inline"/>
16                             <field name="product_uom" class="oe_inline" readonly="1" groups="product.group_uom"/>
17                         </div>
18                         <field name="location_id" groups="stock.group_locations"/>
19                     </group>
20                     <footer>
21                         <button name="do_move_consume" string="Ok" type="object" class="oe_highlight"/>
22                         or
23                         <button string="Cancel" class="oe_link" special="cancel" />
24                     </footer>
25                 </form>
26             </field>
27         </record>
28
29         <record id="move_consume" model="ir.actions.act_window">
30             <field name="name">Consume Move</field>
31             <field name="type">ir.actions.act_window</field>
32             <field name="res_model">stock.move.consume</field>
33             <field name="view_type">form</field>
34             <field name="view_mode">form</field>
35             <field name="target">new</field>
36         </record>
37
38        <record id="view_stock_move_scrap_wizard" model="ir.ui.view">
39             <field name="name">Scrap Move</field>
40             <field name="model">stock.move.scrap</field>
41             <field name="arch" type="xml">
42                 <form string="Scrap Move" version="7.0">
43                     <separator string="Scrap Products"/>
44                     <group>
45                         <field name="product_id"  readonly="1"/>
46                         <label for="product_qty"/>
47                         <div>
48                             <field name="product_qty" class="oe_inline"/>
49                             <field name="product_uom" class="oe_inline" readonly="1" groups="product.group_uom"/>
50                         </div>
51                         <field name="location_id" string="Scrap Location" widget="selection"
52                             domain="[('usage','!=','view'),('scrap_location','=',True)]" groups="stock.group_locations"/>
53                     </group>
54                     <footer>
55                         <button name="move_scrap" string="Ok" type="object" class="oe_highlight"  />
56                         or
57                         <button string="Cancel" class="oe_link" special="cancel" />
58                     </footer>
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 Serial Numbers</field>
74                 <field name="model">stock.move.split</field>
75                 <field name="arch" type="xml">
76                 <form string="Split in Serial Numbers" version="7.0">
77                     <group>
78                         <field name="product_id" readonly="1"/>
79                         <label for="qty"/>
80                         <div>
81                             <field name="qty" readonly="1" class="oe_inline"/>
82                             <field name="product_uom" readonly="1" class="oe_inline"/>
83                         </div>
84                         <field name="location_id" invisible="1"/>
85                         <field name="use_exist"/>
86                     </group>
87                     <field name="line_ids" attrs="{'invisible':[('use_exist','=',True)]}">
88                         <tree string="Serial Numbers" editable="bottom">
89                             <field name="name"/>
90                             <field name="quantity" />
91                         </tree>
92                         <form string="Serial Number" version="7.0">
93                             <group>
94                                 <field name="name"/>
95                                 <field name="quantity" />
96                             </group>
97                         </form>
98                     </field>
99                     <field name="line_exist_ids" attrs="{'invisible':[('use_exist','!=',True)]}">
100                         <tree string="Serial Numbers" editable="bottom">
101                             <field name="prodlot_id" string="Serial Number" quick_create="false" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)" context="{'product_id': parent.product_id}"/>
102                             <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom,context)" />
103                         </tree>
104                         <form string="Serial Number" version="7.0">
105                             <group>
106                                 <field name="prodlot_id" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)"/>
107                                 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)" />
108                             </group>
109                         </form>
110                     </field>
111                     <footer>
112                         <button name="split_lot" string="Split" type="object" class="oe_highlight"/>
113                         or
114                         <button string="Cancel" class="oe_link" special="cancel"/>
115                     </footer>
116                 </form>
117                 </field>
118             </record>
119
120             <record id="track_line" model="ir.actions.act_window">
121                 <field name="name">Split in Serial Numbers</field>
122                 <field name="type">ir.actions.act_window</field>
123                 <field name="res_model">stock.move.split</field>
124                 <field name="view_type">form</field>
125                 <field name="view_mode">form</field>
126                 <field name="target">new</field>
127             </record>
128
129     </data>
130 </openerp>