What Attachment Storage Saver does
Storage Saver recompresses scanned PDFs and photos inside Odoo, shows where your storage goes, and keeps every original until the new file is verified. Dry run first, undo in one click, before/after report for every run.
Shrink the filestore: recompress scanned PDFs (vendor bills, scans) and photos in pure Python, dry run with projected saving, originals kept and verified before release, one-click undo, before/after report, storage analytics per model and file type, orphan filestore files, archive old files to Cloud Drive.
Features
Measure
Dashboard and analytics show which documents, file types and years take the space.
Dry run
Estimate the saving on a sample. Nothing is written; the projection covers all matching files.
Compress
Background batches. Each result is verified before it replaces the file; the original is kept.
Release or undo
Restore any file in one click while originals are kept; they are checked again before release.
PDF scans in pure Python
Pictures inside PDFs are downscaled to the resolution you choose and re-encoded; text, fonts, forms, bookmarks and metadata stay as they are. Uses the PDF library and Pillow that Odoo already ships.
Photos and PNG images
JPEG photos are turned upright, resized and re-encoded with their colour profile; PNG files are optimised without loss.
Dry run with projection
Try the settings on a sample first: before and after sizes per file and the projected saving on every matching file, without writing anything.
Originals kept and verified
The new file is read back from the disk and compared by SHA-1; every PDF object except the pictures must stay byte for byte identical. Any doubt: rolled back, original untouched.
One-click undo
Restore one file or a whole run while originals are kept. Restored files are never compressed again; a file changed after compression is never overwritten.
Protected documents
Digitally signed, encrypted, PDF/A and e-invoice PDFs (Factur-X, ZUGFeRD) and e-signature documents are left alone. Binary-field files are excluded by default.
Shared files handled
Odoo stores identical files once; every attachment pointing to the same file is compressed together, so the old file really disappears.
Storage analytics
Pivot and graph of attachment storage per document type, file type, year, location and company, plus a list of the largest files.
Orphan filestore files
Finds files that no attachment points to (Odoo never cleans those). Quarantine first, restore at any time, delete for good later.
Before / after report
A PDF per run: totals, saving per document type, largest savings and why files were left alone.
Nightly policies
New matching files are compressed every night; kept originals are checked once more and released when their keeping period ends.
How it works, step by step
01See where the storage goes
Storage Saver > Dashboard. Files in Odoo, the filestore on disk, the database, the split by PDF and images, what can still be compressed, what was saved and how many originals are still kept. The largest document types are listed with their size.

02Analyse per document and file type
Analytics opens a pivot of every attachment: rows per document (contacts, invoices, tasks...), columns per file type, size in MB and file count. Filter by location (filestore or database) or company.

03Follow the growth per year
The graph view stacks the storage per upload year and file type, so you see which years of scans are worth compressing first.

04Pick the heaviest files by hand
The Largest files list sorts attachments by size. Select some and use Actions > Compress with Storage Saver for a quick dry run or compression of just those files.
05Set a policy
A policy says which files (PDF, JPEG, PNG, size, age, documents) and how strong: Light 200 dpi, Balanced 150 dpi, Strong 110 dpi or your own resolution and quality. Grey scans can be stored in greyscale.
06Choose the safety rules
Minimum saving per file, protection of PDF/A and e-invoices, how long originals are kept, and whether the policy runs every night. Signed and encrypted PDFs are always left alone.
07Run a dry run first
The dry run compresses a sample in memory only. It shows the size before and after, the saving and the projected saving on all matching files. Nothing is written.
08Compress in the background
Compress these files starts a background run with progress, pause and resume. It pauses by itself when the disk gets full. In the demo, scans and photos shrank by about 80 %.
09Check every file
Each file has its outcome: compressed with original kept, skipped with the reason (no pictures, e-invoice protected, saving too small) or restored. Filter and group by status, model or reason.
10Proof for each file
The file shows its checksums before and after, the pictures re-encoded, the kept original and until when it is kept. Download the original or open the document.
11Undo in one click
Restore original puts the exact original back (checksum checked) and the file is never compressed again. A run can also be restored as a whole.
12Before / after report
Print the report of a run for your IT or auditor: totals, saving per document type, the largest savings and the files left untouched with the reason.
Questions about Attachment Storage Saver
Will my documents still look the same?
Text, fonts, tables, forms and bookmarks are not touched; only pictures inside PDFs are re-encoded. At Balanced (150 dpi) scans stay sharp on screen and on paper. Start with a dry run and open a few files.
When is the disk space freed?
While originals are kept (14 days by default) both versions exist. When they are released, the original files are removed by Odoo's own file clean-up, usually the same night.
What if something goes wrong while writing?
Each file is written in its own database savepoint, read back from the disk and compared with the verified result. On any difference the change is rolled back and the file is marked failed and left untouched.
Does it work on Odoo.sh and Odoo Online?
It works on Odoo.sh and on your own servers: it only uses Python libraries Odoo already requires. Odoo Online does not allow custom apps.
Are legal or signed documents safe?
Digitally signed and encrypted PDFs and e-signature documents are never changed; PDF/A and e-invoices are protected by default. If your country requires unaltered originals for some documents, exclude those documents in the policy.
Is anything sent outside my server?
No. Everything runs inside Odoo. Cloud Drive archiving only uses the drives you connected.
Can I stop it?
Pause and resume a run at any time; it continues where it stopped. It also pauses itself when less than 500 MB is free on the filestore disk.
