Skip to content
Snippets Groups Projects
Commit 3dfbdc40 authored by jadir-bs's avatar jadir-bs
Browse files

[FIX] account : fixes wrong domain of invoice and bill, uses 'in' operator to...

[FIX] account : fixes wrong domain of invoice and bill, uses 'in' operator to match move_type against a tuple instead of '=' operator.

closes odoo/odoo#126762

X-original-commit: 95d115aa
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent b8582572
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,8 @@ class PortalAccount(CustomerPortal):
searchbar_filters = {
'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'))]},
}
# default filter by value
if not filterby:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment