Zip Code and City Autocomplete - Postal Code Database for 120 Countries (GeoNames)
by Modvanta https://modvantaapps.tech/odoo-apps/geodata/
Odoo
$ 2.99

Type a zip code, get the city, the state and the country: postal code database of about 120 countries for Odoo 19 contacts, the customer portal and the checkout.
Zip code autocomplete | Auto fill city and state | Postal code database | GeoNames | City autocomplete | Portal and checkout | Odoo 19
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Typing addresses by hand gives misspelled cities, zip codes that do not belong to the city and states left empty. This module imports the free GeoNames postal code files into the Odoo city table and uses them everywhere an address is typed: on the contact form, in My Account and My Addresses of the customer portal and at the eCommerce checkout. Type the zip code and the city, the state and the country are filled in; when several places share the zip code, pick the right one from a short list.
| Postal code database of about 120 countries downloaded from GeoNames in one click (Germany: 23,296 postal codes in one import on our bench), or uploaded as a file for servers without internet access. | |
| Full postal codes for Canada, the United Kingdom and the Netherlands (the complete codes, not only the first part). | |
| States matched automatically to the Odoo states of the country, at the right level (provinces for Italy and Spain); missing states created for countries that have none. | |
| County, district, latitude and longitude stored with every postal code; coordinates copied to the contact for Partner Geolocation. | |
| Contact form autofill from the zip code, plus a Find by ZIP or City field that searches by zip code or place name. | |
| Postal code check on the contact: a warning when the city or the state does not belong to the zip code, or a hard refusal if you switch on strict validation. | |
| Customer portal and checkout autofill with a city picker when the zip code has several places. | |
| Monthly refresh, removal of obsolete postal codes (kept when a contact still uses them), import log with counts. | |
| Mass action Complete Address from Zip Code for contacts already in the database. |
Who it is for
Sales and accounting teams Clean customer and vendor addresses for invoices, deliveries and reports. | eCommerce shops Fewer checkout errors: the customer types the zip code and picks the city. | Any country One module for about 120 countries instead of one dataset module per country. |
Screens
Import the postal codes of your countries
Download from GeoNames or upload a file; create missing states, remove obsolete postal codes, enforce cities and refresh every month.

Every import is logged
Lines read, postal codes created, updated, unchanged and removed, states created and the state level used.

The postal code database
Zip code, place, state, county, district and coordinates, searchable by zip code prefix.

Type the zip code, the address fills itself
Zip code 82467 gives Garmisch-Partenkirchen in Bayern (DE).

Find by ZIP or City
Search the places by zip code or by name and pick one: zip, city, state and country are set.

Postal code check on the contact
The contact says Remich, but zip code L-1137 belongs to Howald.

Customer portal: pick the city
Two places share zip code L-4970: the customer picks one.

City and state filled on the portal
The same autofill runs on My Account, My Addresses and the eCommerce checkout address form.

Settings
GeoNames URL, portal autofill, strict validation and coordinates.

How it works
1 | Import Contacts > Configuration > Localization > Import Postal Codes: choose the countries and click Import. |
2 | Check the states The log shows how the states were matched; change the State Level on the country if needed. |
3 | Type addresses On contacts, the portal and the checkout, the zip code fills the city and the state. |
4 | Keep it current Tick Refresh Monthly: the scheduled action downloads the countries again every month. |
Settings
| GeoNames Download URL | Folder holding the country files (default download.geonames.org/export/zip/) |
| Zip Autofill on Portal and Checkout | On by default |
| Refuse Mismatched Addresses | Strict validation of city and state against the zip code |
| Fill Coordinates from the Postal Code | Copies latitude and longitude to the contact |
| Country: State Level | Automatic, first level, second level or no state |
| Country: Refresh Postal Codes Monthly | Per country |
FAQ
Which countries are covered?
Every country GeoNames publishes a postal code file for: about 120, listed on download.geonames.org/export/zip/. A few countries publish only the first part of the codes (for example Ireland, Malta, Chile); for Canada, the United Kingdom and the Netherlands tick Full Postal Codes.
Does it need an account or an API key?
No. The GeoNames files are free under Creative Commons Attribution 4.0. The server only needs internet access to download them, or you upload the file yourself.
Does it work with the Odoo cities (Enforce Cities)?
Yes. The postal codes are stored in the standard Odoo city table, so the City field of countries with Enforce Cities lists them.
What happens to postal codes that disappear from the file?
They are removed at the next import, unless a contact still uses them; those are kept and counted in the log.
Can I add my own postal codes?
Yes, in the Postal Codes list. Postal codes added by hand are never removed by an import.
Compatibility
| Odoo 19 Community and Enterprise | |
| English; translations for German, French and Spanish | |
| Depends on Contacts, Extended Addresses (base_address_extended), Partner Geolocation and Portal | |
| Works with the eCommerce checkout when eCommerce is installed |
Support
| Questions and help: modvantaapps@gmail.com | |
| Postal code data: GeoNames (www.geonames.org), CC BY 4.0 |
Clean addresses from the zip code
About 120 countries, contacts, portal and checkout.
Buy Now - $3Hire Us for Odoo Work| EMAIL modvantaapps@gmail.com | AUTHOR Modvanta | INCLUDED Module and email support |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 1005 |
| Technical Name |
mdv_geodata |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/geodata/ |
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