diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2019-01-31 13:30:27 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2019-02-01 08:06:16 +0000 |
| commit | 3076d7e46435fb1932f0e79666d8aedf78019d48 (patch) | |
| tree | 43feddb25e94f746c4cbeb3516dbb1cdf1f47a95 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 90b6cbde094173bc1e633bffa7d05ada92c4ae7b (diff) | |
[FIX] base: partner search no alnum->no VAT match
When we search a partner, there is a system that show partner who match
exactly the searched term with non-alphanumeric character removed.
But since a6e1eb9f0a there is an issue that wrong partner match if:
- they have an empty string as VAT in the database (odd but can happen)
- if the searched term only contains non-alphanumberic characters
eg. i search 'é' -> all partner with empty string vat are found since
the empty search '' matches empty VAT ''
With this changeset, if there is no alphanumeric character we will check
depending on the operator `vat=NULL`, `vat like NULL`, `vat ilike NULL`
that all will not match any result (and in the query plan does not take
time).
opw-1929563
closes #30732
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
