OdooWiki OCA HUB

Switzerland - Bank type

l10n_ch_base_bank folder_open OCA/l10n-switzerland open_in_new
Localization License: AGPL-3

This addon extend the features of l10n_ch.

Most of the former features have been moved in l10n_ch module.

Features:

Improve UX with onchanges:

  • automatically set bank based on clearing part of IBAN
  • allow direct entry of l10n_ch_postal which will fill acc_number
  • search invoices by ISR, with or without spaces

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Adds Swiss bank details (clearing number, code, city) and automatically fills bank and account numbers from Swiss IBAN or postal numbers. It also lets you search invoices by ISR reference ignoring spaces.

This module extends the Swiss localization with practical helpers for bank data and ISR (Swiss payment slip) references.

On bank records (res.bank) you get extra fields: an internal code, the Swiss clearing number, the city, and a read-only country_code. The bank form and list show these fields, and for Swiss banks the city and BIC become required. A search filter lets you quickly find PostFinance banks.

On partner bank accounts (res.partner.bank), when you enter a Swiss IBAN the system looks up the clearing number inside it and automatically selects the matching bank. If you type a postal account number, the account number is generated for you, using the partner name and making it unique. Accounts starting with 01 or 03 are recognised as ISR issuers.

On invoices (account.move), you can search by reference ignoring spaces, which is handy for ISR numbers. A check prevents saving a customer invoice with an ISR reference if the bank account is missing or lacks the required ISR subscription number for the invoice currency.

These changes appear in the bank configuration screens and in invoice search and validation.

Depends on

base_ibanl10n_ch
Models and fields (3)
  • res.bank · extends an existing modelcity (City), code (Code), clearing (Clearing number), country_code (Country code)
  • account.move · extends an existing model
  • res.partner.bank · extends an existing model

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

Sources · Odoo 13.0

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

terminal Installation and usage

OCA documentation · Odoo 14.0

In partner bank account the type will be discovered automatically.

  • For IBAN accounts fill account number with IBAN.
  • if the IBAN is an IBAN from PostFinance it will fill the Postal account number
  • For Postal accounts:
  • fill the account number with a postal account number 9 digits format (e.g. 10-8060-7).
  • or fill the "Swiss postal account" with a postal account number 9 digits format (e.g. 10-8060-7).

Entering a postal number of 9 digits will auto-complete the bank with PostFinance. (You might create it if you haven't installed l10n_ch_bank)

  • For ISR subscription numbers (postal account starting with 01 or 03):
  • fill the account number with a postal account number 9 digits format (e.g. 01-23456-1).
  • or fill the "Swiss postal account" with a postal account number 9 digits format (e.g. 01-23456-1).

It will automatically change the content of account number by adding "ISR" and the partner name to avoid duplicates with partner using the same ISR subscription number owned by a bank (ISR-B).

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.