| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/knowledge |
| GIT | |
| GIT | https://github.com/OCA/knowledge.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/knowledge/tree/6.1/attachment_file_type |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Knowledge Management |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Therp BV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Therp BV |
| COMMITTERS | |
| COMMITTERS | Alexandre Fayolle, Stefan Rijnhart |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:04:06 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
magic |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
File types for attachments
==========================
Adds a content type to attachments. This is useful for instance in combination
with http://bazaar.launchpad.net/~ocb/ocb-web/6.1/revision/2524, 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.
Installation
============
To install this module, you need to install python-magic in your environment
first.
Configuration
=============
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.
Credits
=======
Contributors
------------
* Stefan Rijnhart <stefan@therp.nl>
* Holger Brunn <hbrunn@therp.nl>
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
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 http://odoo-community.org.
|
No views found for this module.
No new fields.
Public methods (4)create(self, cr, uid, vals, context=None)
update_file_type(self, cr, uid, ids, force=False, context=None)
update_file_type_from_cron(self, cr, uid, count=10000, context=None)
write(self, cr, uid, ids, vals, context=None)