Switzerland - Fix ISR reference
Fix ISR reference computation
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Fixes how the Swiss ISR payment reference is calculated on customer invoices, so the reference printed on invoices matches the subscription number of the company's or bank's bank account.
This module corrects the way the ISR (Swiss orange payment slip) reference is built on customer invoices. It changes the invoice fields that hold the ISR subscription number, which identifies your company or your bank for generating ISR slips.
- The subscription number is now taken from the bank account selected on the invoice (
partner_bank_id), using the EUR subscription number when the invoice currency is EUR and the CHF one when it is CHF. If the invoice uses another currency, no subscription number is set. - Two computed fields are provided: the raw subscription number, padded to the expected length, and a formatted version with dashes and without leading zeros, meant for the ISR report.
- The ISR reference itself is recomputed from the invoice number: non-digit characters are removed, the number is padded with zeros, and a check digit is added. When an ISR-B customer ID exists on the bank account, it is placed at the start of the reference.
- If the invoice has no subscription number or no invoice number, the reference is left empty.
Everything happens automatically on the invoice; there are no new menus or screens. It affects account.invoice and relies on the Swiss bank account data from the localisation modules.
Depends on
Required by other modules
Models and fields (1)
- account.invoice · extends an existing modell10n_ch_isr_subscription, l10n_ch_isr_subscription_formatted
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-03Confirmation 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
No verified informationInstallation 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.