diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-11-15 15:09:04 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-11-15 15:09:04 +0000 |
| commit | de76e5e081792eab757b06de37a04b0b2753dbdc (patch) | |
| tree | 2e8e98676af7f9b1f4a3ffed84a2b872dcf2fea2 | |
| parent | 1512f1d60ad8016b01d1f1e1c9d75e9497004f13 (diff) | |
[FIX] purchase: wrongly written domain
closes odoo/odoo#28735
| -rw-r--r-- | addons/purchase/models/product.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/purchase/models/product.py b/addons/purchase/models/product.py index 724fdb45069..49897429a4e 100644 --- a/addons/purchase/models/product.py +++ b/addons/purchase/models/product.py @@ -43,7 +43,7 @@ class ProductTemplate(models.Model): @api.multi def action_view_po(self): action = self.env.ref('purchase.action_purchase_order_report_all').read()[0] - action['domain'] = [('state', 'in', ['purchase', 'done']), '&', ('product_tmpl_id', 'in', self.ids)] + action['domain'] = ['&', ('state', 'in', ['purchase', 'done']), ('product_tmpl_id', 'in', self.ids)] action['context'] = { 'search_default_last_year_purchase': 1, 'search_default_status': 1, 'search_default_order_month': 1, @@ -75,7 +75,7 @@ class ProductProduct(models.Model): @api.multi def action_view_po(self): action = self.env.ref('purchase.action_purchase_order_report_all').read()[0] - action['domain'] = [('state', 'in', ['purchase', 'done']), '&', ('product_id', 'in', self.ids)] + action['domain'] = ['&', ('state', 'in', ['purchase', 'done']), ('product_id', 'in', self.ids)] action['context'] = { 'search_default_last_year_purchase': 1, 'search_default_status': 1, 'search_default_order_month': 1, |
