Detect, score, and review duplicate records across any model — starting with Contacts.
- Technical name
- do_duplicate_detector
- Author
- Do Incredible
- Version
- v20.0.1.0.0
- Odoo series
- Odoo 20.0
Version 20.0.1.0.0 Commit 7b832d9d # Changelog All notable changes to **Universal Duplicate Detector** (`do_duplicate_detector`) are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/) within the Odoo `19.0.x.y.z` scheme. ## [19.0.3.1.0] - 2026-07-11 ### Changed - **Compare screen — professional Many2many / One2many layout.** Relational fields are now rendered as per-record chips instead of one long comma-separated string. Members **shared by every** compared record are muted; members **unique to a single** record are highlighted in amber and listed first, with a count badge on the field label and a colour legend — so a reviewer sees exactly which linked records differ at a glance. ### Fixed - **Order-insensitive x2many difference detection.** Two records carrying the same Many2many/One2many members in a different order are no longer wrongly reported as "differing" on the Compare screen or in the `/duplicate_detector/api/compare` payload. ### API - `do.duplicate.service.compare_records` now adds a `members` key to each field row: for x2many fields, the per-record list of related records (`[{id, name}, …]`); `None` for scalar fields. Additive and backward-compatible — `values`, `differs` and `has_blank` are unchanged. ## [19.0.3.0.0] - 2026-07-11 ### Added - **Matching engine extended from text-only to every relevant field type** — Many2one, Selection, Boolean, Integer, Float, Monetary, Date, Datetime, Many2many and One2many, alongside the original Char/Text/HTML. New comparison operators: Same Linked Record, Same Option, Same Flag, Number Equal, Number Within Tolerance, Same Date, Date Within Days, Shared Members (%) and Identical Set — with per-rule numeric and date tolerances. Text operators (Exact, Fuzzy, …) also run on a Many2one/Selection field's display label. ## [19.0.2.0.0] - 2026-07-11 Second major release. Expands the baseline detection-and-merge engine into a full duplicate-management platform: prevention, comparison, batch operations, exports, and a REST/JSON API. ### Added - **Nine matching algorithms** — exact, case-insensitive, trim spaces, ignore symbols, fuzzy (RapidFuzz), Soundex phonetic, phone normalization, email normalization, and VAT normalization. - **Weighted 0–100 composite scoring** with configurable confidence bands (Exact / Very High / High / Possible). - **Blocking-based candidate generation** to avoid O(N²) scans on large tables, plus **incremental** scanning for the scheduled cron. - **Detection Profiles** — no-code, per-model, per-field weighted rules; multiple profiles per model via domain filters (e.g. Contacts vs Vendors on `res.partner`). - **Self-seeding profiles** — ships a Contacts profile and auto-seeds **Vendors, Products and Employees** profiles when `account`, `product` or `hr` are installed. - **Per-profile config toggles** — Detection, Allow Merge, Scheduled Scan, Ignore Archived, Ignore Cross-Company, Prevent Duplicates (Warn/Block + threshold), Auto-Merge Exact (off by default), Notify Users. - **Duplicate prevention at create time** — Warn posts a chatter note, Block rejects the create; enabled on Contacts out of the box and mixable into any model via `do.duplicate.prevent.mixin`. - **Merge wizard** with per-field value selection and three strategies (Manual / Keep master / Smart newest-non-empty), plus a **merge preview** (master kept, duplicates archived, linked-document move counts). - **Batch Merge** for resolving many duplicate groups at once. - **Generic cross-model reference repointing** — moves many2one, many2many, attachments, messages, followers and activities onto the master. - **Archive-only, fully reversible merges** via a **Merge Log** with JSON rollback snapshots. - **Side-by-side Compare screen** highlighting differing values, with a linked-documents summary. - **Detection entry points** — contextual "Find Duplicates" in any enabled model's list Action menu; "Find Similar Records" and a "Duplicates" smart button on the contact form; a "Detect Duplicates" wizard; and a scheduled cron (ships inactive). - **REST / JSON API** (`type=jsonrpc`, `auth=user`) — `/duplicate_detector/api/scan_model`, `/scan_all`, `/groups`, `/score`, `/compare`, `/prevent`, and `/merge` (merge requires Manager), backed by the `do.duplicate.service` facade. - **Excel (.xlsx) and CSV export controller** at `/duplicate_detector/export`, plus a **Reports wizard** for PDF (QWeb) / Excel / CSV. - **OWL dashboard** — profile cards, status summary (Total / Pending / Merged / Ignored / Duplicate Records / Merged Today), monthly trend chart, top duplicate causes, top duplicate models, recent scans, and merge stats. - **Native pivot / graph** views on duplicate groups and merge logs. - **Third security tier** — Duplicate Detector / Administrator (roll back merges, delete merge logs, full config) added above User and Manager. ### Changed - Detection is now driven entirely by **Dete