summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/lib/summernote/src/js/module
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2020-01-27 16:46:37 +0000
committerNicolas Lempereur <nle@odoo.com>2020-01-28 20:04:29 +0000
commitdf296322825a9d6ffa344091427de5a9413bad67 (patch)
treeef28ec3c19ce865258d1df8654740d663e717ccd /addons/web_editor/static/lib/summernote/src/js/module
parent32fc38ef58dc4b4f1ff4e176ff4fa03b9c427397 (diff)
[FIX] base: search user by name negatively
When we name_search a res.user, we have a special hack so we will firstly perform an exact search on the res.users login, if none is found we will search over res.users name. This is intended but in the case of negative search since 660cebb4faaeb, for example operator='not ilike' and name='test' would probably just return all user that do not have a login that is exactly test. This is not the intended behavior, in this instance we should just return user that do not have "test" in their names. Without fix, added test would fail on: - .name_search('vlad', operator='not ilike') => finding everyone but user with exactly login vlad instead of user not containing vlad in their name - .name_search('', operator='not ilike') => find all users instead of finding no user - .name_search('lad', operator='not ilike') => find all users instead of just finding "Nothing similar" opw-2170517 closes #44040 closes odoo/odoo#44152 X-original-commit: 2378fb63c132c0bcf027785d478c0608b59a3409 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js/module')
0 files changed, 0 insertions, 0 deletions