Integration with PostcodeApi.nu
by Therp BV https://github.com/OCA/l10n-netherlands , Odoo Community Association (OCA) https://github.com/OCA/l10n-netherlandsAvailability |
Odoo Online
Odoo.sh
On Premise
|
Community Apps Dependencies | Show |
Lines of code | 6641 |
Technical Name |
l10n_nl_postcodeapi |
License | AGPL-3 |
Website | https://github.com/OCA/l10n-netherlands |
Versions | 8.0 9.0 10.0 11.0 12.0 |
Integration with PostcodeApi.nu
This module contains integration of the excellent and free address completion service ‘PostcodeAPI’. The service allows lookups by zip code and house number, providing street name and city. The lookups will be triggered in the partner form views when a zip code or house number is entered or modified. Only Dutch addresses (which is assumed to include addresses with no country) are auto-completed.
More info about the lookup service here: http://www.postcodeapi.nu/
Table of contents
Installation
This module depends on the standard Odoo module base_address_extended, which will split up the street field into separate fields for street name and number.
It now also depends on l10n_nl_country_states, to provide the names of the provinces, that will be added to the res_country_state model.
You also need to have the ‘pyPostcode’ Python library by Stefan Jansen installed (https://pypi.python.org/pypi/pyPostcode).
Configuration
Please enter the API key that you request from PostcodeAPI into the system parameter ‘l10n_nl_postcodeapi.apikey’
Provinces are auto-completed if a country state with the exact name is found in the system.
Changelog
11.0.2.0.0 (2021-08-21)
- Now depend on l10n_nl_country_states to prevent conflicts with that module;
- No manual caching of province data. It complicates code and performance gain will almost certainly be negligible;
- Check valid Api Key in configuration immediately when setting or updating key;
- Take into account that with l10n_nl_country_states installed, state_id on partner will in many cases be set, even if postcode api not active, or cannot find address;
- Adjust tests to run properly on databases already containing data.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Therp BV
Contributors
- Stefan Rijnhart (Therp BV) <stefan@therp.nl>
- Andrea Stirpe <a.stirpe@onestein.nl>
- Ronald Portier <ronald@therp.nl>
Maintainers
This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainer:
This module is part of the OCA/l10n-netherlands project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Nieuwe versie PostcodeApi
Deze module is gebouwd voor versie 2 van de PostcodeApi. Deze gaat verdwijnen. Inmiddels is er versie 3, maar daar is deze module niet op gebouwd, want de versie zit hard gecodeerd in de code. Kan het versie nummer niet, net als de apikey, als parameter worden meegegeven? Ik bedoel: is deze module op deze manier aan te passen, zodat hij in de toekomst ook geschikt is voor versie 4. NB: Versie 3 bevat ook de postbussen, versie 2 echter niet. Upgraden dus! De PostcodeApi is overigens niet meer gratis, maar wel goedkoop.