Skip to Content
Menu

Restrict Duplicate Contact

by
Odoo

5.00

v 17.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Contacts (contacts)
Discuss (mail)
Lines of code 134
Technical Name restrict_duplicate_contacts_h
LicenseAGPL-3
Websitehttp://heosnetperu.com
Versions 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Contacts (contacts)
Discuss (mail)
Lines of code 134
Technical Name restrict_duplicate_contacts_h
LicenseAGPL-3
Websitehttp://heosnetperu.com
Versions 16.0 17.0 18.0
HeosNet Logo

Restrict Duplicate Contacts

Prevent duplicate contacts per company across create, quick create, and edit flows.

Per company Quick create safe Multi-create aware

What does this module do?

>Restrict Duplicate Contacts enforces uniqueness of selected contact fields per company. It validates on standard create/write, on quick create from Many2one fields, and during multi-create operations in Odoo 17. Choose which fields (e.g., name, email, phone, vat) must be unique, and keep your partner data clean across companies.

Key features

Per-company uniqueness

The scope of validation is restricted to the current company and includes shared contacts.

Permission Create Screenshot
Configurable fields

Select any res.partner char/binary fields via Settings → Contacts (many2many to ir.model.fields).

Permission Create Screenshot
Quick create protection

Blocks duplicates when using Many2one → “Create and edit” (overrides name_create).

Permission Create Screenshot
Native Odoo integration

Works seamlessly with Contacts and any app using partners (Sales, Accounting, etc.).

Permission Create Screenshot

Setup (2 minutes)

Enable
  1. Go to Settings → Contacts.
  2. Turn on Unique Contacts (per company).
  3. Select the fields to enforce (e.g., name, email, phone, vat).
  4. Save.
Behavior
  • Blocks duplicates on create and quick create.
  • Skips the same record and contacts under the same commercial partner.
  • Search scope defaults to the current company; you can include shared contacts (company_id=False) if needed.

Benefits

  • 🔒 Data integrity: no duplicates creeping into your companies.
  • Operational efficiency: clean partner records, fewer corrections.
  • 🌐 Multi-company ready: rules are company-scoped and configurable.
  • 🧩 Zero friction: works with quick create and standard flows out of the box.

Keep your contacts clean

Enforce per-company uniqueness and stop duplicates at the source.

Get the module

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.