[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.
This commit is contained in:
amoyaux
2017-10-25 10:59:14 +02:00
committed by Simon Lejeune
parent c4ba5adc04
commit 1d72dc3e6a
+1 -1
View File
@@ -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