OdooWiki OCA HUB

Dutch postcode validation for Partners

l10n_nl_postcode folder_open OCA/l10n-netherlands open_in_new
Localization License: AGPL-3

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.0

Checks 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

base
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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/l10n-netherlands.

terminal Installation and usage

OCA documentation · Odoo 18.0

To 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.

info

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.