odoo/odoo#197838

Created by Antoine Demany (ande)
Merged at 8452b3ae74450010cbcd6b84df4b4a4dea6d8380

Statuses:

Linked pull requests
label
odoo-dev:17.0-OPW_4473528-phone_validation-mexican_phone_numbers-ande
head
ddf0764232a577460331a6020c47faeccf8fe67f
merged
7 months ago by Marketing, Thibault Delavallee (tde)
odoo/odoo odoo/enterprise
17.0 #197838 #79416
saas-17.4 #202271 #81663
18.0 #202295 #81677
saas-18.1 #202539 #81765
saas-18.2 #202562 #81774
saas-18.3
saas-18.4
19.0
master #202582 #81780

[FIX] phone_validation: phone numbers in mexico

Current behaviour:

Mexican phone numbers are not managed correctly following the 2019 changes in Mexico.
(Removing a 1 in phone numbers)

Cause of the issue:

The phonenumbers library removing support of mexican phone numbers starting with 1 in 8.13.38
The Whatsapp API still using the mexican phone numbers starting with 1

Fixes:

Patched the phonenumbers library, removing 1 at the right place for mexican phone numbers.
Similar to: 53885e41867653ad45ca3aef55886c280240b76a

Changed the forcing to international format when parsing, to make sure the patches are applied before detecting an issue.
Similar to: 29a4de8e29a2e330b8e5993c9fde23c69a2eff5e

opw-4473528


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr