diff --git a/phone_validation_e164/controllers/main.py b/phone_validation_e164/controllers/main.py index 30fc9913..92241f9c 100644 --- a/phone_validation_e164/controllers/main.py +++ b/phone_validation_e164/controllers/main.py @@ -17,9 +17,7 @@ class WebsiteSaleExt(WebsiteSale): ) def address(self, **kw): if "submitted" in kw and kw.get("phone") and kw.get("country_id"): - country_id = request.env["res.country"].browse( - int(kw["country_id"]) - ) + country_id = request.env["res.country"].browse(int(kw["country_id"])) formated_vals = phone_format( kw.get("phone"), country_id.code if country_id else None,