[FIX] stock: fix traceability smartbutton domain

`product_id.product_tmpl_id` expects ids of `product.template`
while `products.ids` are ids of `product.product`.

This is an oversight during the migration to the new API of this
module in the below revision:
b9853db8b5

opw-687444
This commit is contained in:
Denis Ledoux
2016-09-05 15:59:27 +02:00
parent f2c3205c49
commit 3ba9dba798
+1 -1
View File
@@ -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