[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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user