OdooWiki OCA HUB

Partner business code validation

l10n_fi_business_code_validate folder_open OCA/l10n-finland open_in_new
CRM License: AGPL-3

Adds a business code (business ID) validation and format check for business id

Supported countries:

  • Finland
  • https://www.vero.fi/globalassets/tietoa-verohallinnosta/ohjelmistokehittajille/yritys--ja-yhteis%C3%B6tunnuksen-ja-henkil%C3%B6tunnuksen-tarkistusmerkin-tarkistuslaskenta.pdf

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Validates Finnish business IDs (business codes) on partner records, checking the format and the official check digit and blocking invalid entries.

When a partner has both a business code and a country, this module automatically checks the business code whenever either field is saved. For Finnish partners it applies the official Finnish rules.

  • If the code is entered as eight digits without a separator, it is automatically rewritten in the standard form 1234567-1.
  • A code already written in the older 123.456 style is accepted as is.
  • Any other code must match the pattern 1234567-1, otherwise Odoo refuses to save and shows the message "Your business id is invalid. Please use format 1234567-1".
  • The last digit is verified with the official Finnish check-digit calculation; if it does not match, saving is blocked with a message telling the user the validation digit is invalid and to check the business ID.

The validation is triggered by a constraint on the partner's business code and country fields, so it applies wherever partners are created or edited, including contacts, companies and any other screen that writes to res.partner. The module extends res.partner and relies on the business code field provided by the l10n_fi_business_code module. No new menus, reports or scheduled actions are added; the change is purely a data-quality check on partner records.

Models and fields (1)
  • res.partner · 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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 12.0

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

terminal Installation and usage

No verified information

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.

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.