summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorJulien Banken <jbn@odoo.com>2021-04-23 13:18:58 +0000
committerJulien Banken <jbn@odoo.com>2021-04-23 13:18:58 +0000
commitb08ea4414f4e2eefcc9e71ca7e876d2cd44c7565 (patch)
treefa709c35bf19ef4be4b778ccbd33adec6fd49afb /setup
parent22cf05f652ceb1f0f2e17d160cdf8d0cc5a00a15 (diff)
[FIX] crm: fix incorrect prefix removal from phone filter
When the user searches a phone number, the search function will generate a pattern by removing the "+" sign as well as well as the prefix "00" from the input string. Problem: If the input string starts with "+", it means that the phone number will be prefixed by something different than "00". As the function will systematically remove the first occurrence of "00" from the input string, the function can remove part of the input string that does not correspond to a prefix. The search results can hence be incorrect. Example: If the user types "+32485001122", the function will remove the "+" sign and the first occurrence of "00" from the input string. In the provided example, the function will search phone numbers matching with the pattern "324851122" which is incorrect. Solution: The function should remove the first occurrence of "00" iff the phone starts with "00". Task id: 2479277 COM PR: odoo/odoo#69729 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'setup')
0 files changed, 0 insertions, 0 deletions