From ab3f1633cd15dcff4c4a2674713a2e066c0008a4 Mon Sep 17 00:00:00 2001 From: jadir-bs Date: Fri, 30 Jun 2023 15:20:17 +0000 Subject: [PATCH] [FIX] account : fixes wrong domain of invoice and bill, uses 'in' operator to match move_type against a tuple instead of '=' operator. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/odoo#127105 X-original-commit: 8300c4a59c5654d8fc4e22c5b6848d4dcae04ff2 Signed-off-by: William André (wan) --- addons/account/controllers/portal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)