OdooWiki OCA HUB

Switzerland - Postal codes (ZIP) list

l10n_ch_zip folder_open OCA/l10n-switzerland open_in_new
Localisation License: AGPL-3

This module will load all the Swiss postal codes (ZIP) to ease the input of partners.

It is not mandatory to use them in Odoo in Switzerland, but can improve the user experience.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Loads all Swiss postal codes and cities into Odoo so that addresses can be auto-completed. Adds Swiss-specific postal data fields to the city and ZIP records.

This module fills Odoo with the official list of Swiss postal codes and cities, making address entry faster and more accurate.

  • It adds extra Swiss postal information to the existing city and ZIP records, such as the Swiss Post classification number, postcode type, additional postcode digits, language codes, whether the postcode is in the sort file, the delivering post office, the Federal Statistical Office municipality number, and the date from which the postcode is valid.
  • The data is loaded automatically when the module is installed, so users do not need to import it manually.
  • The module works with the res.city.zip model and also loads city data, which is used when entering partner addresses.
  • It depends on the base location and Swiss states modules, so it fits into the standard address management in Odoo.
  • There are no new menus or screens; the added fields appear on the existing city and ZIP records, and the main benefit is auto-completion when typing addresses.
Models and fields (1)
  • res.city.zip · extends an existing modellang (Language code), onrp (Swiss Post classification no. (ONRP)), sort (Present in sort file), lang2 (Alternative language code), active (Active), zip_type (Postcode type), valid_from (Valid from), additional_digit (Additional poscode digits), communitynumber_bfs (FSO municipality number (BFSNR)), post_delivery_through (Mail delivery by)

Text generated by AI (DeepSeek) from reading the Odoo 12.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/l10n-switzerland.

terminal Installation and usage

OCA documentation · Odoo 12.0

To install this module, you need to:

  • download and install manually
  • or directly install it over Odoo-Apps

The module base_location is required. It is available in https://github.com/OCA/partner-contact/

Since Version 8.0.2.0 the module l10n_ch_states is required. It is also available in https://github.com/OCA/l10n-switzerland

To use this module, you need to:

  • Fill the new field in the partner form with a zip or a city from Switzerland
  • Then you get a list with possible entries.
  • The one you select is auto-filled in the zip-, city-, state- and country-field.

No verified information in OCA: 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.