Autocomplete Partner Address | Contact form
by Broditech Solutions S.L. https://broditech.com/en/shop/autocomplete-partner-address-contact-form-76#attribute_values=6$ 52.92
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 540 |
| Technical Name |
bt_mapbox_base |
| License | OPL-1 |
| Website | https://broditech.com/en/shop/autocomplete-partner-address-contact-form-76#attribute_values=3 |
| Versions | 16.0 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 540 |
| Technical Name |
bt_mapbox_base |
| License | OPL-1 |
| Website | https://broditech.com/en/shop/autocomplete-partner-address-contact-form-76#attribute_values=3 |
| Versions | 16.0 17.0 18.0 19.0 |
Autocomplete Partner Address
Instantly autocomplete customer addresses using the Mapbox Geocoding API - fill street, city, zip, and coordinates in one click.
What does this module do?
Autocomplete Partner Address integrates the Mapbox Geocoding API directly into Odoo's address fields. As you type a street name or city, the module returns real address suggestions that you can select with a single click - automatically filling in the street, city, ZIP code, country, and GPS coordinates.
The autocomplete is available everywhere an address field appears: the Contacts app, sale orders, purchase orders, invoices, and any other form with a partner address block.
Instant address suggestions
Type a few characters in the street field to get real-time address suggestions powered by Mapbox's global geocoding database.
Longitude & latitude auto-fill
GPS coordinates are automatically populated when an address is selected, keeping location data accurate without manual entry.
Country-aware filtering
Suggestions are filtered by the partner's country so results stay relevant and local, reducing noise in the dropdown.
Works from any form
Autocomplete is available in Contacts, sale orders, purchase orders, invoices, and every form that includes a partner address block.
Multi-language support
Address suggestions are returned in the active Odoo language, making the tool useful for multilingual teams.
Community, Enterprise & Odoo.sh
Fully compatible with all Odoo deployment types - self-hosted Community, Enterprise, and Odoo.sh.
Before vs. after
The comparison below shows how much faster address data entry becomes after installing this module. Left side: standard Odoo address form with manual entry. Right side: with the module - one click fills the complete address.
Using address autocomplete
Once the module is installed and configured, autocomplete is available immediately on all address fields.
-
Open a contact or any form with an address
Navigate to Contacts and create or open a partner record. The autocomplete also works from sale orders, purchase orders, invoices, and any other form that includes a partner address block.
-
Start typing in the Street field
Click on the Street field and type the first few characters of the address. A dropdown of suggestions from the Mapbox Geocoding API appears automatically. Results are filtered by the partner's country if one is already set.
-
Select an address from the dropdown
Click on the matching suggestion. The street, city, ZIP code, state, country, latitude, and longitude fields are all filled in automatically. No manual entry needed.
-
Create a customer directly from a sale order
You can also use autocomplete when creating a new customer record inline from a sale order or any other form - without leaving the current document.
-
Save the record
Click Save (or use the breadcrumb to navigate away). The address and coordinates are stored on the partner record.
Module configuration
The module requires a Mapbox API access token to function. Once the token is saved in settings, autocomplete is active on all address fields with no further configuration needed.
Where to find the settings
Go to Settings > General Settings and scroll to the Contacts section. You will find the Autocomplete addresses setting with a token field.
How to configure
- Obtain your Mapbox access token (see the Get a Mapbox Token tab for full instructions).
- Go to Settings > General Settings > Contacts > Autocomplete addresses.
- Paste your token into the Token field.
- Click Save.
- Open any partner record and start typing in the street field to verify autocomplete is working.
Country filtering
Suggestions are automatically scoped to the partner's country when one is set. For best results, set the country on the partner before typing the street address. If no country is set, global suggestions are returned.
How to get a Mapbox access token
A Mapbox access token is required to use the geocoding API. Tokens are free to obtain and Mapbox's free tier is more than sufficient for most Odoo installations.
-
Create a Mapbox account or sign in
Go to
https://www.mapbox.com/and create a free account or sign in if you already have one. -
Go to your Mapbox dashboard and generate a token
Once logged in, navigate to your account dashboard. Under Access tokens, you can use the default public token or create a new one scoped for geocoding. Copy the token value.
-
Paste the token into Odoo settings
In Odoo go to Settings > General Settings > Contacts > Autocomplete addresses. Paste the token into the Token field and click Save.
-
Verify - open a partner and type an address
Open any partner record, click on the Street field, and start typing. If the token is valid, a dropdown of address suggestions will appear immediately.
Troubleshooting
- Suggestions do not appear after saving the token: double-check that the token was saved correctly and that the Autocomplete addresses setting is enabled. Try refreshing the browser.
- Suggestions appear but coordinates are not filled: verify your Mapbox token has the Geocoding scope enabled. Tokens without geocoding permissions will not return coordinate data.
- Results are in the wrong language: check the language configured in your Odoo user profile. Suggestions are returned in the active Odoo interface language.
Support
If you have any questions or issues with this module, please contact us:
- Email: hello@broditech.com
- Website:
https://broditech.com
Developed by Broditech Solutions S.L. -- https://broditech.com
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