Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. Duplicate Attachment Cleanup v 15.0
  4. Sales Conditions FAQ

Duplicate Attachment Cleanup

by Alpenglow Technologies LLC
Odoo

$ 58.09

v 15.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Invoicing (account)
• Purchase (purchase)
Lines of code 735
Technical Name aglow_attachment_cleanup
LicenseSee License tab
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Invoicing (account)
• Purchase (purchase)
Lines of code 735
Technical Name aglow_attachment_cleanup
LicenseSee License tab
  • Description
  • License

Remove Duplicate Attachments

Safely identify and remove duplicate attachments that accumulate from
email signatures and repeated vendor/customer correspondence.

✅ Safe & Auditable 👁 Review Before Delete 💾 Recover Storage

⚠ The Problem

When customers and vendors reply to Odoo-generated emails, their email signatures often contain images that get automatically attached to your Purchase Orders, Sale Orders, and Invoices through Odoo's chatter system.

Multiple back-and-forth emails on a single record can result in the same signature image being attached 3-10+ times. Across thousands of records, this leads to:

  • Significant storage bloat — Gigabytes of redundant data
  • Slower record loading — More attachments = slower performance
  • Cluttered attachment lists — Hard to find important documents
  • Increased backup sizes — Longer backup times and storage costs

ⓘ Description

Attachment Duplicate Cleanup is a safety-first module designed to help Odoo administrators identify and remove duplicate attachments without risking important data. Unlike simple deletion scripts, this module provides a complete workflow with analysis, review, and audit capabilities.

The module uses checksum-based detection to find byte-for-byte identical files across your Purchase Orders, Sale Orders, and Invoices. You review the duplicates, select which copy to keep, and only then perform the cleanup — with full logging of every action taken.

🔍

Smart Detection

Uses SHA-1 checksums to identify exact duplicate files regardless of filename

🖼

Visual Preview

See image previews before deciding what to delete

🛡

Protected Records

Product images, partner photos, and other critical attachments are never touched

📋

Full Audit Trail

Every deletion is logged with complete metadata for compliance

✅

Manual Review

Nothing is deleted without explicit human confirmation

⏲

Optional Automation

Weekly cron for analysis (cleanup still requires manual approval)

⚙ How It Works

A safe, three-phase workflow ensures you never accidentally delete important data:

1 Analyze

Scan your selected models (PO, SO, Invoices) to find records with multiple attachments and identify duplicates by checksum.

🔒 Read-only — no changes made

2 Review

Browse duplicate groups with image previews. Select which attachment to keep, then mark as "Ready to Delete" or "Will be Ignored".

👁 Full visibility before action

3 Cleanup

Delete duplicates from groups marked "Ready to Delete" only. Each deletion is logged with full details for audit purposes.

⚠ Requires confirmation

🔧 Configuration

Analysis Settings

When creating a new analysis, you can configure the following options:

Setting Default Description
Minimum Attachments 3 Only analyze records that have at least this many attachments. Lower values find more duplicates but take longer to process.
Target Models All (PO, SO, Invoices) Choose which document types to scan: Purchase Orders, Sale Orders, Invoices/Bills, or a custom list of models.
File Type Filter Images Only Filter by MIME type. "Images Only" targets signature images specifically. Use "All Types" to find all duplicate files.
💡 Recommendation
Start with the defaults (Images Only, Min 3 attachments) to target email signatures. Run on a staging database first to verify results before production cleanup.

Protected Attachments

The following attachment types are automatically protected and will never be deleted:

  • Attachments with res_field set (binary field storage like product images)
  • Product template and variant images
  • Partner/contact photos
  • Company logos
  • Employee photos

Cron Job (Optional)

A weekly scheduled action is included but disabled by default. When enabled, it:

  • Runs analysis automatically
  • Auto-selects the oldest attachment as the "keeper"
  • Does NOT auto-delete — cleanup always requires manual confirmation

Location: Settings → Technical → Scheduled Actions → "Attachment Duplicate Analysis (Weekly)"

📖 Usage

Step 1: Create an Analysis

  1. Navigate to Settings → Attachment Cleanup → New Analysis
  2. Configure your analysis settings (or use defaults)
  3. Click "Run Analysis"
  4. Wait for the analysis to complete (progress is logged)

Step 2: Review Results

After analysis completes, you'll see summary statistics:

247
Duplicate Groups Found
1,842
Total Redundant Files
2.4 GB
Potential Storage Recovery

Click "Review Duplicates" to examine each duplicate group:

  • Image Preview — See exactly what the duplicate looks like
  • Attachment List — View all copies with their linked records
  • Select Keeper — Choose which copy to preserve (defaults to oldest)
  • Ready to Delete — Mark the group for cleanup
  • Will be Ignored — Skip this group entirely

Step 3: Perform Cleanup

  1. Return to the Analysis form
  2. Click "Delete Ready Groups"
  3. Confirm the action in the dialog
  4. Review the cleanup log for details
⚠ Important
Deleted attachments cannot be recovered through the module. Always ensure you have a recent database backup before performing cleanup, especially the first time.

📁 Menu Structure

All features are accessible under Settings → Attachment Cleanup:

Settings
+-- Attachment Cleanup
    +-- Cleanup Analyses <-- View all analysis runs
    +-- New Analysis <-- Quick-start wizard
    +-- Cleanup Logs <-- Audit trail

🎙 Support

Questions or issues? We're here to help.

✉ support@alpenglowtech.com


Attachment Duplicate Cleanup is developed and maintained by Alpenglow Technologies LLC.

Disclaimer: This module performs permanent deletions of attachment records. While extensive safety measures are built in, Alpenglow Technologies LLC is not responsible for any data loss resulting from use of this module. Users are strongly advised to maintain regular backups and test on staging environments before production use.

This software is provided "as is", without warranty of any kind, express or implied. Always verify cleanup results meet your expectations before proceeding with large-scale operations.

Copyright © 2025 Alpenglow Technologies LLC. All rights reserved.

This software, including all source code, user interface elements, scripts, and associated files (collectively, the "Software"), is the proprietary and confidential property of Alpenglow Technologies LLC (“Licensor”). Unauthorized use, reproduction, modification, distribution, or disclosure of the Software, in whole or in part, is strictly prohibited without prior written consent from the Licensor.

Licensee is granted a non-transferable, non-exclusive, revocable license to use the Software solely for its intended purpose, subject to the following conditions:

1. **Ownership & Copyright**
   The Software is protected by U.S. and international copyright laws. Alpenglow Technologies LLC retains all right, title, and interest in and to the Software, including all intellectual property rights.

2. **Restrictions**
   Licensee shall not:
   - Modify, copy, reproduce, sublicense, or distribute the Software;
   - Reverse engineer, decompile, disassemble, or attempt to derive the source code;
   - Remove, alter, or obscure any copyright, trademark, or proprietary notices;
   - Use the Software in any manner that violates applicable laws or third-party rights.

3. **No Warranty**
   THE SOFTWARE IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. USE OF THE SOFTWARE IS AT THE LICENSEE’S OWN RISK.

4. **Limitation of Liability**
   IN NO EVENT SHALL ALPENGLOW TECHNOLOGIES LLC BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING BUT NOT LIMITED TO DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, OR EXEMPLARY DAMAGES, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

5. **Termination**
   This license is effective until terminated. It will terminate automatically without notice from the Licensor if the Licensee breaches any term of this agreement. Upon termination, the Licensee must immediately cease all use and destroy all copies of the Software.

6. **Governing Law**
   This Agreement shall be governed by and construed in accordance with the laws of the State of California, without regard to its conflict of law principles.

For inquiries or licensing requests, contact:  
**contact@aglow.dev**

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.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with