diff options
| -rw-r--r-- | addons/account/controllers/portal.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/controllers/portal.py b/addons/account/controllers/portal.py index 44355f227f8..540aec110c0 100644 --- a/addons/account/controllers/portal.py +++ b/addons/account/controllers/portal.py @@ -49,9 +49,9 @@ class PortalAccount(CustomerPortal): order = searchbar_sortings[sortby]['order'] searchbar_filters = { - 'all': {'label': _('All'), 'domain': [('move_type', 'in', ['in_invoice', 'out_invoice'])]}, - 'invoices': {'label': _('Invoices'), 'domain': [('move_type', '=', 'out_invoice')]}, - 'bills': {'label': _('Bills'), 'domain': [('move_type', '=', 'in_invoice')]}, + 'all': {'label': _('All'), 'domain': []}, + 'invoices': {'label': _('Invoices'), 'domain': [('move_type', '=', ('out_invoice', 'out_refund'))]}, + 'bills': {'label': _('Bills'), 'domain': [('move_type', '=', ('in_invoice', 'in_refund'))]}, } # default filter by value if not filterby: |
