diff --git a/addons/stock/models/product.py b/addons/stock/models/product.py index 6a17b6d3870..6c3fb36856c 100644 --- a/addons/stock/models/product.py +++ b/addons/stock/models/product.py @@ -365,7 +365,7 @@ class Product(models.Model): self.ensure_one() action = self.env.ref('stock.action_production_lot_form').read()[0] action['domain'] = [('product_id', '=', self.id)] - action['context'] = {} + action['context'] = {'default_product_id': self.id} return action @api.multi