Dutch postcode validation for Partners
This module checks and validates the Dutch zip code (postcode) on partner forms.
- In case the postcode is not valid, a non-blocking alert is shown.
- In case the postcode is valid, it will be formatted in the form 1234 AB.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Checks Dutch postcodes on partner forms: valid ones are reformatted to the standard "1234 AB" style, and invalid ones show a non-blocking warning.
When you type or change the postcode (or the country) on a contact/partner form, this module automatically checks the value.
- It only acts when the partner's country is the Netherlands; for any other country nothing happens.
- If the postcode is valid, Odoo rewrites it in the official Dutch format, for example "1234ab" becomes "1234 AB".
- If the postcode is not valid, a warning pop-up appears saying that the postcode you entered is not valid. The warning does not stop you from saving the record.
The check runs as an on-change behaviour on the res.partner model, so it is triggered while filling in the form, not as a hard database constraint. The validation itself relies on the external stdnum library; if that library is not installed, the check is simply skipped.
There are no new menus, buttons, reports or scheduled actions. The module only extends the existing partner form and touches the res.partner model. A technical flag (skip_postcode_check in the context) can be used by other code to bypass the check, but this is not something a normal user sees.
Depends on
Models and fields (1)
- res.partner · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 6 confirmed, 3 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/l10n-netherlands.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0To use this module, you need to:
- Open a form of a contact
- Enter the country = Netherlands
- Enter a valid postcode: not any warning is displayed
- Enter a wrong postcode: a non-blocking warning is displayed
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.