OdooWiki OCA HUB

Romania - Partners Unique

l10n_ro_partner_unique folder_open OCA/l10n-romania open_in_new
Localization License: AGPL-3

This module add condition for unique partners based on VAT and NRC numbers.

auto_awesome What this module does

AI-generated from the code · Odoo 20.0

Prevents saving two Romanian companies with the same VAT number (and optionally the same trade register number), so duplicate business partners cannot be created by mistake.

This module adds a duplicate check on company contacts in Odoo. When a user saves a company contact that is flagged as a Romanian record and has a VAT number, Odoo looks for another company contact with the same VAT number and blocks the save with an error message if one is found.

The comparison ignores case and the "RO" prefix, so "RO123456" and "123456" are treated as the same VAT number. Only top-level companies are compared: contacts linked to a parent company and individual (non-company) contacts are not checked.

A system setting controls how strict the check is: - By default only the VAT number must be unique. - If the setting is switched to also compare the trade register number (NRC), a company is blocked when another company has the same VAT number, or the same trade register number, or when the existing company has no trade register number at all.

The check runs automatically whenever the VAT number, the trade register number or the "is a company" flag is changed on a contact.

It also works together with Odoo's partner merge tool: while merging duplicate contacts, the uniqueness check is temporarily skipped so the merge can complete.

The module only touches the contact (partner) screen; it adds no new menus or reports. It depends on the Romanian localization configuration module.

Depends on

Models and fields (1)
  • res.partner · extends an existing model

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

Sources · Odoo 20.0

Confirmed on 2026-11-03 in branch 20.0 of OCA/l10n-romania.

terminal Installation and usage

OCA documentation · Odoo 20.0

To install this module, you need to:

  • Clone the repository
  • Add the path to this repository in your configuration (addons-path)
  • Update the module list
  • Search for "Romania - Partners Unique" in your addons
  • Install the module

No verified information in OCA: Configuration, Usage.

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.