Attachment MIME Type Restriction

attachment_mimetype_restriction
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/15.0/attachment_mimetype_restriction
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSocial
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Quartile
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Quartile
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Aungkokolin1997
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:40
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form.inherit.attachment_mimetype res.config.settings xpath Inherits mail.res_config_settings_view_form
view_model_form_inherit_attachment_mimetype ir.model.form.inherit.attachment.mimetype ir.model xpath Inherits base.view_model_form
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_mimetypes Char
    help="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'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • attachment_allowed_mimetypes Char
    string='Allowed Attachment Types'
Public methods (0)

No public methods.

New fields (1)
  • attachment_allowed_mimetypes Char
    readonly=False related='company_id.attachment_allowed_mimetypes' string='Allowed Attachment Types'
Public methods (0)

No public methods.