summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorAnh Thao Pham (pta) <pta@odoo.com>2021-04-22 13:30:23 +0000
committerAnh Thao Pham (pta) <pta@odoo.com>2021-04-23 12:02:10 +0000
commit159bc7b0c081fd54df2f2396b18e9a63892caa2e (patch)
tree3449f1743565afaf23b9965361860e233582359d /addons
parent676c9a3a7c739e13b49f1482581178c01582996a (diff)
[FIX] account: display credit notes on portal
- Create an invoice for a portal user - Add a credit note for that invoice - Connect with portal user - On Invoices & Bills menu, the correct count is displayed (i.e. 2) - Open Invoices & Bills page The "All" filter only displays out_invoice and in_invoice, making impossible to view the other types (out_refund, in_refund, out_receipt, in_receipt). opw-2486471 closes odoo/odoo#69693 Signed-off-by: William André (wan) <wan@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/controllers/portal.py6
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: