diff --git a/base_phone/base_phone.py b/base_phone/base_phone.py index b5fb2b0..0d663be 100644 --- a/base_phone/base_phone.py +++ b/base_phone/base_phone.py @@ -90,7 +90,7 @@ class PhoneCommon(models.AbstractModel): init_value = vals.get(field) try: res_parse = phonenumbers.parse( - vals.get(field), countrycode) + vals.get(field), countrycode.upper()) vals[field] = phonenumbers.format_number( res_parse, phonenumbers.PhoneNumberFormat.E164) if init_value != vals[field]: