File types for attachments

Technical Name:
Therp BV
  • Odoo Version

Terms and Conditions

File types for attachments

Adds a content type to attachments. This is useful for instance in combination with, which makes Odoo offer downloads with the correct file type based on this field.

The document module makes this field available as well. This module does not interfere with its functionality when both are installed.


To install this module, you need to install python-magic in your environment first.


This module comes with a daily scheduled task to provide content types for attachments without one in small batches (instead of trying to do this for all attachments at installation time). Depending on the number of attachments in your system you may deactivate this task after some time. You can follow the progress in the logs at the time that the cron job is fired.




Odoo Community Association

This module is maintained by the OCA.

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.

To contribute to this module, please visit

This is a preview of the recently viewed products by the user.
Once the user has seen at least one product this snippet will be visible.

Recently viewed Products