| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 333 |
| Technical Name |
duplicate_contact_check |
| License | OPL-1 |
| Website | https://github.com/gohibiki |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 333 |
| Technical Name |
duplicate_contact_check |
| License | OPL-1 |
| Website | https://github.com/gohibiki |
Duplicate Contact Check
Stop creating the same contact twice
The problem
Sales reps, coordinators, and importers create the same contact multiple times every week. Standard Odoo lets them do it. Once the database is polluted, you spend hours merging records, and your reports get noisy.
Duplicate Contact Detection for Odoo CRM
Catches duplicate contacts on every save path before the record reaches the database. When a user types a name that matches an existing individual contact, a confirmation dialog opens with a clickable link to the existing record. They can review it and decide whether to save anyway or cancel.
The dialog catches accent and hyphen variants — typing "Jean Paul Lefèvre" matches both "Jean Paul Lefevre" and "Jean-Paul Lefèvre".
Features
Catches every save path
Manual save, autosave, urgent save (browser close, navigation away). The check fires before the record is committed.
Accent and whitespace tolerant
Matches "Jose Garcia" to "José García" and "Jean-Paul" to "Jean Paul". Powered by PostgreSQL unaccent and a normalized name search.
Clickable existing duplicates
The confirmation dialog lists matched contacts as links. One click opens the existing record so the user can review before deciding.
Server-side enforcement
The check runs in create, write,
and web_save. API and import paths cannot
bypass it without the explicit
duplicate_skip_check flag.
Audit trail in chatter
Every silent drop or skipped create is logged on the affected record's chatter, so you always know when a duplicate was caught.
Configurable from Settings
Toggle the duplicate check and the search normalization independently from Settings → Duplicate Contact Check.
Configurable from Settings
Toggle the duplicate check and the search normalization independently. The settings live in a dedicated app block in the Odoo Settings page, accessible to administrators.
How the Duplicate Check Works
- A user types a contact name and triggers a save.
- The server-side check searches the database for an individual contact with the same name (case, accent, space and hyphen insensitive).
- If a match is found, a confirmation dialog opens listing the existing duplicates as clickable links.
- The user clicks Save Anyway to proceed, or Cancel to abort. Cancel keeps the typed value in the form so the user can edit it.
-
On non-UI paths (API, automated rules, imports), the name
is dropped and the event is logged on the record's
chatter. Pass
duplicate_skip_check=Trueto bypass when you have a legitimate reason.
Compatibility
Built for Odoo 19. Compatible with Community and Enterprise. No external services. No telemetry. No data leaves your instance.
Support
Questions or bug reports? gohibiki@protonmail.com
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module