Attachment MIME Type Restriction
attachment_mimetype_restriction · OCA/social
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis
1 migration note
5 models
2 views
2 HTTP endpoints
Migration considerations
view_model_form_inherit_attachment_mimetype— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.view.form.inherit.attachment_mimetype | res.config.settings | form | Inherits mail.res_config_settings_view_form |
view_model_form_inherit_attachment_mimetype |
ir.model.form.inherit.attachment.mimetype | ir.model | form | Inherits base.view_model_form |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | BinaryExtended.upload_attachment |
inherited | http | ALL | |
/mail/attachment/upload |
DiscussControllerExtended.mail_attachment_upload |
public | http | POST |
Models touched 5
New fields (0)
No new fields.
Public methods (2)-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (1)
-
attachment_allowed_mimetypesCharhelp="Comma-separated list of allowed MIME types for attachments on this model. Leave empty to use company's global configuration. Example: image/png,application/pdf. This configuration applies globally to all companies."string='Allowed Attachment Types'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
attachment_allowed_mimetypesCharstring='Allowed Attachment Types'
No public methods.
New fields (1)
-
attachment_allowed_mimetypesCharreadonly=Falserelated='company_id.attachment_allowed_mimetypes'string='Allowed Attachment Types'
No public methods.