diff --git a/addons/website_sale_digital/models/product.py b/addons/website_sale_digital/models/product.py index 23a2004ea22a0..fb35ba06fee69 100644 --- a/addons/website_sale_digital/models/product.py +++ b/addons/website_sale_digital/models/product.py @@ -44,8 +44,8 @@ def _compute_attachment_count(self): for product in self: product.attachment_count = self.env['ir.attachment'].search_count([ '|', - ('res_model', '=', 'product.template'), ('res_id', '=', product.product_tmpl_id.id), ('product_downloadable', '=', True), - ('res_model', '=', 'product.product'), ('res_id', '=', product.id), ('product_downloadable', '=', True)]) + '&', '&', ('res_model', '=', 'product.template'), ('res_id', '=', product.product_tmpl_id.id), ('product_downloadable', '=', True), + '&', '&', ('res_model', '=', 'product.product'), ('res_id', '=', product.id), ('product_downloadable', '=', True)]) @api.multi def action_open_attachments(self):