diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-10-09 13:01:27 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-10-09 14:14:31 +0000 |
| commit | 9f209dd77ea71cd45a9eab7f1d7424a81e0f9489 (patch) | |
| tree | 6b41afd9b6d379b2e36503a889b5d8da55640756 /doc/howtos/backend/exercise-constraint-python | |
| parent | a277bfb44a725f201b728dfc79515a01c0a29f6a (diff) | |
[FIX] project: do not crash when no result
If the selected project has no task (e.g. new project), still make a search.
The previous code was making a KeyError on the filterby as the read_group
returned no result.
Introduced at d5bc0e57cd9288dc7
As a portal, a user may have access to some projects (when set explicitly as
the customer on the project configuration).
Make this with a first search and add the other tasks also with the read_group
in case the user has access to some tasks but not the project.
Fixes #27457
closes odoo/odoo#27581
Diffstat (limited to 'doc/howtos/backend/exercise-constraint-python')
0 files changed, 0 insertions, 0 deletions
