summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-10-01 14:39:35 +0200
committerThibault Delavallée <tde@odoo.com>2018-10-02 16:52:18 +0200
commit2f82b95dcaf8e9773d47c369e9218b9f778642e2 (patch)
treeccef965c2c3fc185c4784c6ff937785fd9356525 /addons/web/static/tests/fields/basic_fields_tests.js
parent0c37eb272fba1063444f0ec91db1fe543c1beebf (diff)
[FIX] mail: insert only sanitized and lower-case emails in blacklist
Purpose of this commit is to standardize content of blacklist records and ensure only real email addresses are stored. We introduce a sanitize method to extract email address from string (like Raoul Grosbedon <raoul@example.com> -> raoul@example.com) and return a lower case version of it. Purpose is to gradually get rid of lower() that appear a lot in the code and speedup computation by being sure everything is always lower case. Moreover indexing on blacklist model will be more performant is using directly email field content instead of having to lowerize it. This commit is related to task ID 33224 (original blacklist implementation done for v12) and its PR #25966 as well as task ID 1889703 (tests and fixes) and its PR #27330. Done with collaboration of @dbeguin.
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions