Skip to main content
Odoo Community Association

Attachment Unindex Content

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

This module disables the indexation of attachments content.

Attachment model has a field called ‘index_content’ where the content of the attachment is read and stored directly in the database. This field is useful in order to search content of a file. But most of cases it is not used, so, you can install this module in order to:

  • Avoid Duplicating Data: Because indexation extracts text content from files and put it on the database in order it could be searched, but this implies you have the file data in your filestore directory, and also part (or sometimes all) of that data in your database too.

  • Improve Performance: Since not all indexed files are plain text, they require extra process to read them.

Maybe you could try to uninstall modules like document in order to disable its indexation features, but you could face the uninstallation of other modules that could be useful for you (e.g, hr_recruitment depends on that).

But even if you don’t have document installed, you’d still have plain text content indexation by default. As you can see in this SQL query results, indexation is active even without it:

SQL Query result showing indexed content

Using this module you will not require to uninstall any module to disable the attachment content indexation, because we directly disable it at ir.attachment base.

Also, after the installation, the index_content field on attachments already recorded in database will be cleared.

Nothing is stored, but the field is still readable: when the database has no content for an attachment, reading index_content indexes the file at that moment and puts the result in the cache only. Code that reads the field, as the website does to find a color in the CSS bundle, keeps working with no copy of the content in the database. The cost is reading the file of every attachment whose index_content is requested. Searching on the field still finds nothing, because the column stays empty.

Table of contents

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Vauxoo

Contributors

Other credits

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

moylop260 ebirbe luisg123v

This module is part of the OCA/server-tools project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo-addon-attachment-unindex-content 19.0.1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-attachment-unindex-content 19.0.1.0.1
File Interpreter ABI Platform Actions
odoo_addon_attachment_unindex_content-19.0.1.0.1-py3-none-any.whl Python 3 none any Details for odoo_addon_attachment_unindex_content-19.0.1.0.1-py3-none-any.whl

Release files / odoo_addon_attachment_unindex_content-19.0.1.0.1-py3-none-any.whl

Download URL odoo_addon_attachment_unindex_content-19.0.1.0.1-py3-none-any.whl
Size 31.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9d0109a6b35eb36d346278fb12da863edc2fb42d48fc96e545a73d1ce8bd158
BLAKE2b-256 checksum
How to use checksums
769468216890f7e4af25d90e889c493c20130fd0a17a42954cc42913abe87a8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-attachment-unindex-content 19.0.1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page