From d132bce45997d7e38c03538db762b07b99a893fc Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Wed, 26 Aug 2020 13:45:44 +0000 Subject: [FIX] portal,project: allow other company users to correctly access my/tasks page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In multi-company configuration setup, Company A and Company B. Have a project in Company A that I want to share with a user in Company B. The user only has access to Company B. Share using the project link and open using the user Traceback error will raise. Adding a default value to retrieve in case the filter option is used but the user has no permissions on the records. opw-2322236 closes odoo/odoo#57087 X-original-commit: bcb62e8f6e20bccc2f2350bdc1268c495b7103da Signed-off-by: agr-odoo Signed-off-by: Sébastien Theys (seb) --- addons/project/controllers/portal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/project/controllers') diff --git a/addons/project/controllers/portal.py b/addons/project/controllers/portal.py index e80aaa647e2..43147037d2b 100644 --- a/addons/project/controllers/portal.py +++ b/addons/project/controllers/portal.py @@ -151,7 +151,7 @@ class CustomerPortal(CustomerPortal): # default filter by value if not filterby: filterby = 'all' - domain = searchbar_filters[filterby]['domain'] + domain = searchbar_filters.get(filterby, searchbar_filters.get('all'))['domain'] # default group by value if not groupby: -- cgit v1.2.3