diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index 08037dc62255c21cc93aa302a3389f8406f436fe..07e6c0e7c5f0bcc22b3d028dd13dafbe1df5139c 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -279,7 +279,7 @@ class ResPartner(models.Model): # generate where clause to include multicompany rules where_query = account_invoice_report._where_calc([ - ('partner_id', 'in', all_partner_ids), ('state', 'not in', ['draft', 'cancel']), ('company_id', '=', self.env.user.company_id.id), + ('partner_id', 'in', all_partner_ids), ('state', 'not in', ['draft', 'cancel']), ('type', 'in', ('out_invoice', 'out_refund')) ]) account_invoice_report._apply_ir_rules(where_query, 'read')