diff options
| author | Richard Mathot <rim@odoo.com> | 2019-09-02 11:52:59 +0000 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2019-09-02 11:57:54 +0000 |
| commit | ed90ad0a01b25c25953b5d111e636317c00ca83c (patch) | |
| tree | a83f8e61e4209a37c9b7abbcbb297d4f20f92537 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | b8c7eddb3493e881a3e2c3d41bd0166ff93e4ef9 (diff) | |
[FIX] mail: restore "pencil" icon behaviour in Followers widget
When editing the followers, the "pencil" icon that leads to the edition
of subtypes should be displayed only when "debug" mode is activated.
This commit restores this behaviour, as it was not the case anymore.
`has_group()` looks for static groups stored in database, whereas
`base.group_no_one` is dynamically added/removed depending on the flag
`debug` of the request.
We thus use `models.user_has_groups()` that adapts on the `debug` flag.
opw-2055848
closes odoo/odoo#36327
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
