Merge branch 'master' of https://github.com/odoo/odoo
[odoo/odoo.git] / addons / stock / wizard / stock_change_product_qty_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="view_change_product_quantity" model="ir.ui.view">
5             <field name="name">Change Product Quantity</field>
6             <field name="model">stock.change.product.qty</field>
7             <field name="arch" type="xml">
8                 <form string="Update Product Quantity">
9                     <group>
10                         <field name="new_quantity" />
11                         <field name="product_id" invisible="1"/>
12                         <field name="location_id" groups="stock.group_locations"/>
13                         <field name="lot_id"  context="{'search_default_product_id':product_id,'default_product_id':product_id}" groups="stock.group_production_lot"/>
14                     </group>
15                     <footer>
16                         <button name="change_product_qty" string="_Apply" type="object" class="oe_highlight"/>
17                         or
18                         <button string="_Cancel" class="oe_link" special="cancel" />
19                     </footer>
20                 </form>
21             </field>
22         </record>
23
24         <record id="action_view_change_product_quantity" model="ir.actions.act_window">
25             <field name="name">Update Product Quantity</field>
26             <field name="type">ir.actions.act_window</field>
27             <field name="res_model">stock.change.product.qty</field>
28             <field name="view_type">form</field>
29             <field name="view_mode">form</field>
30             <field name="view_id" ref="view_change_product_quantity"/>
31             <field name="target">new</field>
32         </record>
33
34     </data>
35 </openerp>
36