International Phone Number Input - Country Flag Picker, E.164 Phone Format, Phone Validation
by Modvanta https://modvantaapps.tech/$ 14.96

Every phone number with its country, checked and saved the same way
A country picker with flags and dial codes on every phone field of Odoo 19 and on the website forms: the example number of the country as placeholder, a clear message when a number is wrong, and every number saved in E.164 (+14165550199) so calls, SMS and WhatsApp work.
What it does
Odoo stores phone numbers as free text. People type 030 123456, +49 30 123456 or 0049-30-123456 for the same number, and the country is often missing. This module adds the country to the input and normalizes the number before it is saved, in the backend and on the website.
Validation runs in the browser while typing and again on the server, on the same offline number data, so a number refused in the browser is refused by the server too. No phonenumbers library, no CDN.
Who it is for
- Companies with customers or suppliers in several countries.
- Webshops that ship abroad and need a reachable phone number at checkout.
- Teams that call, text or WhatsApp from Odoo and need numbers in international format.
- Anyone cleaning up years of phone numbers typed in every style.
Key features
Every screen below is the module running on Odoo 19 with sample data.
Feature 1
Flag and dial code on every phone field
The country of the number is shown in front of it on contacts, CRM, sales, employees and any other phone field. The example number of the country is the placeholder.

Feature 2
Search the country list
Type a country name or a dial code, move with the arrow keys and press Enter. Preferred countries come first; you can also limit the list to some countries.

Feature 3
Saved in E.164, shown formatted
The number is saved as +14165550199 (or in international format if you prefer) and shown as +1 416-555-0199. Typing a + and the calling code switches the country by itself.

Feature 4
Invalid numbers are refused
Too short, too long, unknown calling code or not a number of that country: the field says why and the record is not saved. Choose warn-only or no check instead if you prefer.

Feature 5
Duplicate phone warning
A contact whose number already belongs to another company or person shows who else uses it.

Feature 6
Checkout address
The delivery and billing address forms of the shop get the same picker; the server checks the number again before the address is saved.

Feature 7
Contact us and website forms
Phone fields of the contact form and of forms made with the form builder are checked live and normalized on submit.

Feature 8
Phone number at sign up
Optionally ask for a phone number when customers create an account, as an optional or a required field. It is saved on the new contact.

Feature 9
Settings
Backend, website and sign up switches, visitor country detection, save format, validation mode, duplicate check, default, preferred and allowed countries, flags and dial code display.

Feature 10
Phone field rules
Give one field its own default country, strictness, mobile numbers only, required and error message.

How it works, step by step
- Install the module: phone fields get the country picker at once.
- Settings > General Settings > International Phone Input: choose the save format and the validation mode.
- Pick the default, preferred or allowed countries if you need to.
- Optional: add phone field rules for fields that need their own country, a mobile number or a message.
- Select existing contacts and run Action > Format phone numbers to clean old numbers.
Settings
- Where: backend, website forms, sign up (optional or required), visitor country detection.
- Format: E.164 or international; validation block, warn or off; duplicate warning; formatted display.
- Countries: default country, shown first, only these.
- Display: flags, dial code next to the flag. Phone field rules per model and field.
Frequently asked questions
Do I need the phonenumbers Python library?
No. The module ships its own compact copy of the public libphonenumber number data (Apache License 2.0) and uses it in Python and in the browser.
Which country is used when a number has no + prefix?
The default country of the settings, else the country of the contact, else the country of the company. On the website the country picked by the visitor, or the visitor country when the server has a GeoIP database.
What happens to the numbers I already have?
Nothing until you edit them or run Format phone numbers. Numbers that are not valid are left as they are.
Can I keep invalid numbers?
Yes: set the validation to warn only or no check, for all fields or for one field with a rule.
Does it work with SMS, WhatsApp and click-to-call?
Yes, the phone field keeps its call and SMS links, and numbers in E.164 are what those services expect.
Compatibility
- Odoo 19 Community and Enterprise.
- Depends on Contacts, eCommerce (website_sale) and sign up (auth_signup).
- All countries of the libphonenumber data (245 regions).
Phone numbers with their country, everywhere in Odoo
Support: modvantaapps@gmail.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• eCommerce (website_sale) • Discuss (mail) • Website (website) • Invoicing (account) |
| Lines of code | 1455 |
| Technical Name |
mdv_phone_intl_input |
| License | OPL-1 |
| Website | https://modvantaapps.tech/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module