[IMP] stock: pass product_id to set related product in serial number form.
[odoo/odoo.git] / addons / stock / wizard / stock_change_product_qty_view.xml
index 2011430..51639ac 100644 (file)
@@ -10,7 +10,7 @@
                         <field name="new_quantity" />
                         <field name="product_id" invisible="1"/>
                         <field name="location_id" groups="stock.group_locations"/>
-                        <field name="prodlot_id" groups="stock.group_tracking_lot"/>
+                        <field name="prodlot_id" context="{'product_id':product_id}" groups="stock.group_tracking_lot"/>
                     </group>
                     <footer>
                         <button name="change_product_qty" string="_Apply" type="object" class="oe_highlight"/>