OdooWiki OCA HUB

Add Legal Number for North American Banking & Financials

l10n_us_partner_legal_number folder_open OCA/l10n-usa open_in_new
Banking addons License: AGPL-3

Add Legal Number for North American Banking & Financials

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a 'Legal ID' field on partner forms to store US EIN, SSN or Canadian Business Number, with automatic validation of the entered value.

This module adds a new field called Legal ID on the partner (customer, vendor or company) form. It is placed on the Accounting tab, right after the fiscal position field, and shows the placeholder "EIN / SSN / BN" so users know what to enter.

When a user types a value in this field, Odoo automatically checks it against three North American formats: - US Employer Identification Number (EIN) - US Social Security Number (SSN) - Canadian Business Number (BN)

If the value matches at least one of these formats, it is accepted. If it does not match any of them, Odoo blocks the save and shows an error message saying the value is not a valid EIN, SSN or Canadian Business Number. Leaving the field empty is allowed.

The module works by extending the partner model (res.partner) with a reusable mixin model (countinghouse.legal_id_number) that holds the field and the validation rule. It depends on the Accounting app (account) because the field is added to the accounting-related partner form view. No new menus, reports or scheduled actions are created; the change is limited to the partner form and its validation behaviour.

Depends on

account

Required by other modules

Models and fields (2)
  • res.partner · new model
  • countinghouse.legal_id_number · new modellegal_id_number (Legal ID)

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: 5 confirmed, 4 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

Add Legal Number Field

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.