diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2018-02-08 16:17:04 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2018-02-13 16:07:21 +0100 |
| commit | f19e0f8047392af4d51f41d4de6ef64c6f4ff33a (patch) | |
| tree | 81e1633b62e46ad011686bc8f90a59fce9812bce /addons/web_editor/static/src/js | |
| parent | ca0875231ff5f5b308f2c901e78e34af7d7c8bf2 (diff) | |
[FIX] project: set as favorite
- Connect as a user with only 'User' rights on projects
- Set a project as favorite (click the star)
The project is not set as favorite.
Since only project managers are allowed to write on projects, the field
`is_favorite` is set as read-only. Therefore, it is filtered out by
`_generateChanges`, and nothing happens.
First step is to set the attribute `force_save` in the view, so the RPC
`write` call is forced. Second step is to compute directly the inverse
thus bypassing access rights.
Co-authored-by: Nicolas Lempereur <nle@odoo.com>
opw-814604
opw-801587
closes #22938
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions
