diff options
| author | xmo-odoo <xmo-odoo@users.noreply.github.com> | 2015-12-21 10:30:37 +0100 |
|---|---|---|
| committer | xmo-odoo <xmo-odoo@users.noreply.github.com> | 2015-12-21 10:30:37 +0100 |
| commit | 7c0e7347855a9bbc5014f55b8bb1225dff930a1a (patch) | |
| tree | 579eaba212ed823bfe9d325d798621e5ca463ded /addons/web/static/src/xml | |
| parent | 0093372184c25b45e7512ddc4eadcc28a81bc716 (diff) | |
[FIX] strip group name before calling has_group
user_has_groups is used to check for groups in e.g. view attributes (`@groups`).
When trying to format lists of groups in views, it would break down as it would
pass e.g. `\n some.group` to `res.users.has_group`, which would look for
an xid with the module `\n some` and (oddly enough) not find it.
Theoretically could also handle that inside res.users.has_group but it seems
ever-so-slightly more risky, and has_group is only used programmatically and
should thus already be called correctly.
fixes #9797
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
