-
- Downloads
[FIX] phone_validation: new convention number for Ivory Coast
Step to reproduce: - Install contacts - create a new contact and set "Côte d'Ivoire" as country - add a phone number like this one: (+225) 01 02 03 04 05 - try to send a sms to the number, it's says "(Invalid number)" instead of the number, so it's not possible to send the SMS The Ivory Coast has a new standard for the phone number since the 31 January 2021, the phone number can have a length of ten digits. And we use the library phonenumbers with the version 8.9.10 and 8.8.1 for the runbot and the SaaS server, but it's quite old (the 8.9.10 is released on Jul 12 2018). The library in version 8.12.29 resolve the issue, but using the recommended installation method, we would not have this version. opw-2726582 closes odoo/odoo#86742 X-original-commit: 2f718cd7 Signed-off-by:Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
Bruno-brsy <brsy@odoo.com>
Showing
- addons/phone_validation/__init__.py 1 addition, 0 deletionsaddons/phone_validation/__init__.py
- addons/phone_validation/lib/__init__.py 4 additions, 0 deletionsaddons/phone_validation/lib/__init__.py
- addons/phone_validation/lib/phonemetadata.py 8 additions, 0 deletionsaddons/phone_validation/lib/phonemetadata.py
- addons/phone_validation/lib/phonenumbers_patch/__init__.py 31 additions, 0 deletionsaddons/phone_validation/lib/phonenumbers_patch/__init__.py
- addons/phone_validation/lib/phonenumbers_patch/region_CI.py 9 additions, 0 deletionsaddons/phone_validation/lib/phonenumbers_patch/region_CI.py
- addons/phone_validation/tests/__init__.py 4 additions, 0 deletionsaddons/phone_validation/tests/__init__.py
- addons/phone_validation/tests/test_phonenumbers_patch.py 32 additions, 0 deletionsaddons/phone_validation/tests/test_phonenumbers_patch.py
addons/phone_validation/lib/__init__.py
0 → 100644
addons/phone_validation/lib/phonemetadata.py
0 → 100644
addons/phone_validation/tests/__init__.py
0 → 100644
Please register or sign in to comment