diff --git a/addons/stock/models/product.py b/addons/stock/models/product.py index 49d1a4c70b1..831d6f15b68 100644 --- a/addons/stock/models/product.py +++ b/addons/stock/models/product.py @@ -504,7 +504,7 @@ class ProductTemplate(models.Model): action = self.env.ref('stock.act_product_stock_move_open').read()[0] if self: action['context'] = {'default_product_id': products.ids[0]} - action['domain'] = [('product_id.product_tmpl_id', 'in', products.ids)] + action['domain'] = [('product_id.product_tmpl_id', 'in', self.ids)] return action