From 1d72dc3e6af1c03e6ea7bf56e8263cc7e8ffb1c1 Mon Sep 17 00:00:00 2001 From: amoyaux Date: Tue, 24 Oct 2017 18:06:28 +0200 Subject: [PATCH] [FIX] mrp: traceback BOM button on product template [self.ids] represents a list of list and product_id an integer thus the domain definition was not correct. --- addons/mrp/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/models/product.py b/addons/mrp/models/product.py index ab606ace979..5199a9d8eb7 100644 --- a/addons/mrp/models/product.py +++ b/addons/mrp/models/product.py @@ -92,5 +92,5 @@ class ProductProduct(models.Model): 'default_product_tmpl_id': template_ids[0], 'default_product_id': self.ids[0], } - action['domain'] = ['|', ('product_id', 'in', [self.ids]), '&', ('product_id', '=', False), ('product_tmpl_id', 'in', template_ids)] + action['domain'] = ['|', ('product_id', 'in', self.ids), '&', ('product_id', '=', False), ('product_tmpl_id', 'in', template_ids)] return action