1 <?xml version="1.0" encoding="utf-8"?>
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">
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"/>
16 <button name="change_product_qty" string="_Apply" type="object" class="oe_highlight"/>
18 <button string="_Cancel" class="oe_link" special="cancel" />
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>