summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2017-06-19 13:22:30 +0200
committerJérome Maes <jem@openerp.com>2017-06-20 09:00:47 +0200
commit800d54e846b34f350bb4713c7c3cfc9e7a895c5b (patch)
tree83b726c2407059e296fbcd7188da94128fa99dc3 /addons/web/static/src/js/views/basic
parentc124cb71c2d570a75a7e48d098a31b042d41bde4 (diff)
[FIX] phone_validation: bad code comparison
During the formating method, the country code was compared to the country phone code. Indeed, phonenumbers python lib return a `PhoneNumber` object having a `country_code` attribute refering to the country_phone_code, and not the country_code (like odoo means). Consequence: changing the country on a lead did not make the phone validation work. Thus, it was required to give both code (country and country phone codes) to the phonenumbers API, in order to make a correct verification.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions