1e2b70012a690d7c4536cecfb45edd9282774aca
Before this commit, when the user creates a private task and assign another user to that task and then removes himself and save the task, the current user should no longer access to that task since the task becomes this private task of the other user assigned on it. So when the current user changes anything in that task, it will have a `Access Error`. However if the user tries to remove a follower on that task he will also have a traceback because no thread is found. The reason why no thread is found is because the user has no longer access to the record and so he has no longer access to the chatter. This commit checks if a thread is found before continuing the process. If no thread is found then the user has no access to the chatter instead of throwing a traceback because no thread is found. task-2857229 closes odoo/odoo#94665 X-original-commit: 2c68e397b3c12657024e70016808183c89260168 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Co-authored-by: Prakash Prajapati <ppr@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%