| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 2536 |
| Technical Name |
duplicate_guard |
| License | OPL-1 |
Data Hygiene â Duplicate Guard
Detect duplicate Contacts and Products. Warn or block saves with override and audit. Works across the UI, API and automated flows.
Configure rules, match keys and enforcement (Warn / Block).
Override with reason; all overrides logged.
Warn or Block
Warning: in-form notice and a "Potential Duplicates" smart button; save allowed. Block: prevent create/write unless the user overrides with a mandatory reason.
Fields to Match
Select which fields drive detection â email, phone, VAT, name, SKU, barcode, category, brand and more. Pre-filled per model; toggle each on or off per guard.
Override + Audit
Managers can override a block by confirming and entering a reason. Every block, warning and override is written to the Duplicate Guard log.
How It Works
Go to Settings â Partner / Product Duplicate Guard. Enable the guard, pick the behavior mode, the fields to compare, and which fields are critical. Optionally set scope and fuzzy threshold.
When a record is created or updated, values are normalized and a fast indexed pass shortlists candidates. WARNING shows matches and allows save; BLOCK stops save unless overridden.
Open the "Potential Duplicates" wizard to see every match with score and level, open any candidate, or override with a logged reason.
Screenshots
The duplicate wizard â caught on save
Every match is listed with its matched fields, score and level. A critical-field match (e.g. VAT + Email) blocks the save.
Three behavior modes
Set independently per guard. Critical fields always block, whichever mode you choose.
How detection works
Normalize into indexed fields, shortlist candidates from the whole database, then score each match and assign its level.
Partner settings
Compared fields, critical (always-block) fields, scope, check-on-create/update and fuzzy matching.
Product settings
Template and variant checks, catalog-specific compare fields, SKU/barcode critical, fuzzy and logging.
On every record
A smart button and a Duplicate Guard tab show status, last-check time and normalized values (managers only).
Audit log
Every block, warning and override, with user, timestamp, model and matched fields. Filterable by model, user, action and date.
Common Use Cases
Contacts (res.partner)
- Duplicate detection by email, phone or VAT
- Warn or block new contacts matching existing ones
- Override with a reason; all overrides logged
- Fuzzy name / company-name matching for near-duplicates
Products (template & variant)
- Duplicate detection by SKU, barcode or name
- Smart button and tab surface possible duplicates
- Separate template and variant checks
- Catalog fields: category, vendor, brand, sale price
Key Features
Detection & Enforcement
- Server-side duplicate check on create/write (no client bypass)
- Normalized fields (email, phone, VAT, SKU, barcode) stored and indexed
- Per-field comparison toggles; add or remove fields freely
- Behavior modes: Block, Warning, Mixed
- Critical fields always block, even in Warning mode
- Multi-company: global or per-company scope
Visibility & Governance
- Smart button "Potential Duplicates" when matches exist
- Duplicate Guard tab with status, last check and normalized values
- Manager-only visibility via dedicated security groups
- Matches wizard with score, level and matched fields
- Override with a mandatory reason; written to the audit log
- Audit log filterable by model, user, action and date
Limitations & Not Included
- No automatic merges â Duplicate Guard detects and warns/blocks; merging is done via Odoo's native merge flows.
- No dedupe automation â no scheduled jobs that auto-merge or auto-delete; you stay in control.
- No data enrichment â no external APIs to fill or clean data; matching uses only the fields you configure.
- Contacts and products only â other models are not covered by this module.
Why Duplicate Guard?
Focused on detection, governance and audit inside Odoo: server-side rules, warn/block with override, and a clear audit log. No lock-in to external services â configure match keys and enforcement per model and keep full control of when and how records are merged. Ideal for teams that want duplicate control without automatic merges or third-party enrichment.
Configuration
- Go to Settings â Partner / Product Duplicate Guard and enable the guard.
- Choose the behavior mode (Block / Warning / Mixed).
- Select the fields to compare and mark which are critical (always-block).
- Optional: set company scope, exclude inactive/archived records, enable fuzzy matching.
- Review activity in the Duplicate Guard log.
Technical Notes
Normalized fields are indexed for SQL-friendly matching. A fast candidate pass shortlists records before scoring, and fuzzy matching uses an adjustable threshold to keep false positives low.
The smart button, Duplicate Guard tab and settings are restricted to dedicated manager groups. Detection runs server-side on create and write, so it can't be bypassed from the client.
Ready to reduce duplicates?
Install Duplicate Guard and configure your first rule in minutes. Prevent duplicate contacts and products while keeping full audit control.
Technical Support
Support
For functional questions, configuration help or incident troubleshooting:
- Email: georgiev.s.dimitar@gmail.com
- Author: Dimitar Georgiev
Please include:
- Odoo version & edition: (e.g. 19.0 CE/EE)
- Module version: (from Apps / manifest)
- Steps to reproduce: exact clicks/actions
- Screenshots: UI evidence
- Traceback/logs: full server error (if applicable)
Duplicate Guard · v19.0.1.0.0 · © Dimitar Georgiev · Odoo Proprietary License v1.0 (OPL-1). This app does not collect or transmit any data to external services.
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