diff --git a/addons/account/controllers/portal.py b/addons/account/controllers/portal.py index 2cbdb0659f6..91368e7bf36 100644 --- a/addons/account/controllers/portal.py +++ b/addons/account/controllers/portal.py @@ -44,8 +44,8 @@ class PortalAccount(CustomerPortal): def _get_account_searchbar_filters(self): return { 'all': {'label': _('All'), 'domain': []}, - 'invoices': {'label': _('Invoices'), 'domain': [('move_type', '=', ('out_invoice', 'out_refund'))]}, - 'bills': {'label': _('Bills'), 'domain': [('move_type', '=', ('in_invoice', 'in_refund'))]}, + 'invoices': {'label': _('Invoices'), 'domain': [('move_type', 'in', ('out_invoice', 'out_refund'))]}, + 'bills': {'label': _('Bills'), 'domain': [('move_type', 'in', ('in_invoice', 'in_refund'))]}, } @http.route(['/my/invoices', '/my/invoices/page/'], type='http', auth="user", website=True)