summaryrefslogtreecommitdiff
path: root/addons/project/controllers
diff options
context:
space:
mode:
authorAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-08-26 13:45:44 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-09-04 11:33:39 +0000
commitd132bce45997d7e38c03538db762b07b99a893fc (patch)
tree021e052ff3a39d7dfaa12ff991fb2d1baa0d753b /addons/project/controllers
parentefc0263b2574fa355ea794514eb3285d8c449260 (diff)
[FIX] portal,project: allow other company users to correctly access my/tasks page
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 <agr-odoo@users.noreply.github.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/project/controllers')
-rw-r--r--addons/project/controllers/portal.py2
1 files changed, 1 insertions, 1 deletions
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: