diff options
| author | amoyaux <arm@odoo.com> | 2017-10-24 18:06:28 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-10-25 10:59:14 +0200 |
| commit | 1d72dc3e6af1c03e6ea7bf56e8263cc7e8ffb1c1 (patch) | |
| tree | c56191b7c02091f438a525f47098c4f583751871 | |
| parent | c4ba5adc0437d54a8a88bd91032e853ea02a666a (diff) | |
[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.
| -rw-r--r-- | addons/mrp/models/product.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
