Duplicate File Guard
Blocks re-uploading the exact same file - checked by content, not filename
Request a live demo · Odoo.sh or On-Premise only, not Odoo Online (SaaS).
Free
App Store price, per Odoo version
19 · 20
Odoo versions, each sold on its own page
Odoo.sh
or On-Premise; not Odoo Online (SaaS)
1.0.8
version of mh_duplicate_attachment_guard
ir.attachment already stores a SHA1 checksum on every file, but nothing checks it before you upload the same invoice PDF twice. Odoo's own attachment list just grows with silent duplicates.
This app blocks it outright: if a file with byte-identical content is already attached to the same record, the upload is rejected with a clear message naming the existing file - no new model, one small override of ir.attachment.
Deliberately a hard block, not a soft "keep both / replace" dialog - a warning that's easy to click through without reading doesn't actually stop the duplicate.
How it works
Checked by content, not filename
"invoice.pdf" and "invoice_final.pdf" with identical bytes are caught just the same - the check is a checksum comparison, not a name match.
Scoped to the same record
The same file attached to two different records is completely fine - the guard only fires within one record's own attachments.
Screenshots

Requirements
- Odoo 19.0 or 20.0. The App Store sells each version separately, so buy the one that matches your database.
- Odoo.sh or On-Premise only. Third-party apps cannot be installed on Odoo Online (SaaS) databases. Check your hosting before buying.
- Module
mh_duplicate_attachment_guard, version 19.0.1.0.8, licensed OPL-1.