| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 84 |
| Technical Name |
deltatech_backup_attachment |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
| Versions | 16.0 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 84 |
| Technical Name |
deltatech_backup_attachment |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
| Versions | 16.0 17.0 18.0 19.0 |
Backup Attachments
Backup attachments for selected file type
This module allows Odoo administrators to export a selective set of file
attachments as a single ZIP archive. By providing a domain filter on the
ir.attachment model, you can precisely choose which files to include
— for example, only attachments of a specific MIME type, linked to
specific records, or stored on a particular field.
Key features:
- ✓Export attachments filtered by any Odoo domain expression (MIME type, related model, field name, etc.).
- ✓All matching files are bundled into a single downloadable ZIP archive.
- ✓The ZIP preserves the internal storage path of each file
(
store_fname), making it suitable for off-system backups or migration scenarios. - ✓Only files physically present on disk (
store_fnameset and path exists) are included, avoiding broken references.
Example domains:
[("mimetype","not in",["image/png","image/jpeg","application/pdf"])]— export all attachments that are not common images or PDFs.[("res_model","not ilike","product"),("res_model","!=","export.attachment"),("res_field","like","%")]— export attachments linked to fields (not products or the wizard itself).
Usage
Export Attachments
- Go to Settings > Technical > Database Structure > Export attachment.
- In the Domain field, enter a valid Odoo domain expression to
filter which attachments should be exported. The default domain
[("mimetype","not in",["application/pdf"])]exports every attachment that is not a PDF. - Click Apply. The wizard searches
ir.attachmentusing the domain, bundles all files found on disk into a ZIP archive, and transitions to the download step. - When the “Export Complete” message appears, click the File
download button to save
ExportOdooAttachment.zipto your computer. - Click Cancel to close the wizard.
Note: Only attachments that have a physical file on the server
(store_fname populated and the file present on disk) are included in
the ZIP. Database-stored attachments (binary stored in the column, not
the filestore) are silently skipped.
Bug Tracker
Bugs are tracked on Terrabit Issues. In case of trouble, please check there if your issue has already been reported.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Terrabit
- Dorin Hongu
Maintainers
Current maintainer:

This module is part of the dhongu/deltatech project on GitHub.
You are welcome to contribute.
Need help getting started?
We are an Odoo partner building apps for the Romanian market (SAGA & WinMentor export; Romanian accounting localization in progress). Direct support from the team that built the module.
Contact Terrabit →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