diff --git a/addons/account/controllers/portal.py b/addons/account/controllers/portal.py index 0cc3bd44cb2..3fa31df4899 100644 --- a/addons/account/controllers/portal.py +++ b/addons/account/controllers/portal.py @@ -16,11 +16,11 @@ class PortalAccount(CustomerPortal): def _prepare_home_portal_values(self, counters): values = super()._prepare_home_portal_values(counters) if 'invoice_count' in counters: - invoice_count = request.env['account.move'].search_count(self._get_invoices_domain('in'), limit=1) \ + invoice_count = request.env['account.move'].search_count(self._get_invoices_domain('out'), limit=1) \ if request.env['account.move'].check_access_rights('read', raise_exception=False) else 0 values['invoice_count'] = invoice_count if 'bill_count' in counters: - bill_count = request.env['account.move'].search_count(self._get_invoices_domain('out'), limit=1) \ + bill_count = request.env['account.move'].search_count(self._get_invoices_domain('in'), limit=1) \ if request.env['account.move'].check_access_rights('read', raise_exception=False) else 0 values['bill_count'] = bill_count return values