Google Address Autofill - Address Autocomplete with Google Places for Contacts, Checkout and Portal
by Modvanta https://modvantaapps.tech/$ 8.97
Odoo 19CommunityEnterprisePlaces API (New)ContactsCheckoutPortalBy Modvanta
Built and supported by Modvanta - modvantaapps@gmail.com
What it does
Type the first few characters of an address on a contact, at checkout or in My Account. Google suggests real addresses, you pick one, and street, street 2, city, zip, state and country are filled in. On contacts the latitude and longitude are saved too, so the pin lands on the map without a separate geocoding step.
Odoo 19 ships its own Google autocomplete, but it calls the older Places API. Google stopped letting new Cloud projects enable that service on 1 March 2025, so a key created today gets REQUEST_DENIED and the suggestions never show. This module sends the same lookups to Places API (New), which every new key can use. If you still have an old key that works with the older API, you can keep using it: it is one setting.
The key never leaves your server. The browser talks to Odoo, Odoo talks to Google with the key in a request header, and visitors on the website are rate limited per IP so a bot cannot run up your Google bill.
Who it is for
Sales and back office People who type customer addresses into Odoo all day and want them right the first time, with the right state and zip. | Online shops Fewer failed deliveries because the customer picked a real address at checkout instead of typing one. | Delivery and field teams Every contact gets coordinates, a map and a Directions button, and you can export the pins as KML. |
Key features
1Address autocomplete on the contact form
Works on the main address and on the address of child contacts (invoice and delivery addresses), and on the company form. Suggestions can be limited to the countries you sell in.

Typing 1600 Amphithe on a new contact: four suggestions from Google.
2One click fills the whole address
Street with the house number, street 2, city, zip, state and country, matched to the Odoo country and state records. Choose whether the number goes first (12 Main Street) or after the street (Hauptstrasse 12).

The picked address: Mountain View, California, 94043, United States.
3Map tab with a draggable pin
The coordinates of the chosen place are saved on the contact. The Map tab shows them on an OpenStreetMap map; drag the pin to the right door, or click the map to drop one. Open in Google Maps and Directions open Google Maps on that point.

The Map tab with the pin, the coordinates and the three buttons.
4Fill the address from the pin
Reverse geocoding: put the pin where the customer really is and press Fill Address from Pin. Google returns the address at that point and Odoo writes it to the contact, keeping the pin where you put it.

Fill Address from Pin asks before it replaces the address.
5Portal address forms
Customers get the same suggestions in My Account and when they add or edit an address in the portal. Odoo itself only does this on the checkout page.

A portal customer typing 221B Baker in My Account.
6Website address autofill at checkout
The checkout address form gets suggestions as the shopper types. Each website can have its own countries and can switch checkout and portal autofill on or off.

Checkout: one suggestion for 8 Rue de Rivoli, powered by Google.
7Settings in one block
API version, addresses only or addresses and businesses, street format, backend countries, map zoom, saving coordinates and the option to clear the rest of the address when the street is emptied.

The Address Autofill (Google) block in General Settings.
8Test the key before you go live
Test Google Key sends one lookup and tells you what Google said. If it fails you get the reason in plain words, for example that Places API (New) is not enabled on the project.

The key works: the first suggestion is shown in the notification.
9Per-website switches and a rate limit
Autofill on checkout, autofill on portal forms, the countries suggestions come from, and how many lookups one visitor may make per minute.

Website settings: checkout and portal switches, countries and calls per minute.
10KML export of contact locations
Select contacts in the list, choose Export Locations (KML) and open the file in Google Earth or Google My Maps. Contacts without coordinates are skipped.

Export Locations (KML) in the Actions menu of the contact list.
How it works
| 1 | Get a key In Google Cloud, create a project with billing, enable Places API (New) and Geocoding API, and create an API key. |
| 2 | Restrict the key Under API restrictions allow only Places API (New) and Geocoding API. Under Application restrictions choose IP addresses and enter your Odoo server IP. The key is used from the server, so an HTTP referrer restriction is not needed. |
| 3 | Paste it Settings -> General Settings -> Google Address Autocomplete for the backend, and Website -> Settings -> Google Address Validation for the shop. Press Test Google Key. |
| 4 | Type an address On a contact, at checkout or in My Account. Pick a suggestion and save. |
Settings
| API | Places API (New), the default, or the older Places API for keys that still have it. |
| Suggest | Addresses and businesses, or street addresses only. |
| Street Format | As Google writes it, number first, or street first. |
| Countries | Up to 15 countries for the backend (per company) and for each website. Empty means worldwide. |
| Save Latitude and Longitude | On by default. Stores the coordinates of the picked place on the contact. |
| Clear Address When Street Is Emptied | Off by default. Emptying the street on a contact also empties street 2, city, zip and state. |
| Map Zoom | Zoom level of the Map tab, 2 to 19. |
| Checkout / Portal | Switch autofill on or off for each website form. |
| Calls / minute | Lookups one website visitor may make per minute (30 by default, 0 for no limit). Internal users are not limited. |
FAQ
Why not just use the autocomplete that comes with Odoo?
If your Google project was created before March 2025 and has the older Places API enabled, it works. A new project cannot enable that API any more, and that is where this module comes in. It also adds the portal forms, country limits, the street format, coordinates, the map and the rate limit.
Is my API key visible in the browser?
No. The pages only carry an on/off flag. Lookups go to Odoo, and Odoo calls Google with the key in a header. The key fields are visible to administrators only and are masked in the settings.
What does it cost on the Google side?
Google bills Places API (New) per request, grouped into sessions: the typing and the final pick count as one session. Check the current prices on the Google Maps Platform pricing page and set a quota on the project if you want a hard cap.
What happens without a key, or when Google says no?
Nothing breaks. No suggestions appear and the address fields work as normal text fields. The reason is written to the server log (Google status only, never the key).
Does the map need a Google key?
No. The Map tab uses OpenStreetMap tiles. Only Fill Address from Pin calls Google, through the Geocoding API.
Do I need Odoo Enterprise?
No. It works on Community and Enterprise. It uses the Google autocomplete modules and the eCommerce app that ship with Community.
Compatibility
Odoo 19 Community and Enterprise | Depends on Contacts, eCommerce, Geolocation and Odoo's Google autocomplete modules | Tested 47 automated tests, including browser runs of the contact form and the portal form |
Support
Questions before you buy, or something not working after you install? Write to modvantaapps@gmail.com. Bug reports for Odoo 19 are answered and fixed free of charge.
Google Address Autofill
Real addresses on contacts, at checkout and in the portal, with a key Google still accepts.
Buy Now - $9Ask a Question| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) • eCommerce (website_sale) • Website (website) • Invoicing (account) |
| Lines of code | 868 |
| Technical Name |
mdv_address_autofill_google |
| 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