Attachment Pro
Configure attachment file types and size limits with real-time frontend validation
Configure allowed file types and maximum upload size in one place, controlled at system level
One-click configuration of allowed file types and max upload size, system-wide attachment security control
Overview
Attachment Pro provides a centralized attachment security panel in Odoo settings. Administrators configure an allowlist of file formats and a per-file size limit in one place. The frontend validates immediately, blocking disallowed files at upload time without waiting for server checks, and the configuration is injected into the frontend through the session.
Attachment Pro provides a centralized attachment security panel in Odoo General Settings. Admins can configure allowed file type whitelists and maximum upload size with one click. Real-time frontend validation intercepts disallowed files before they reach the server. Configuration is auto-injected via session info with zero extra API overhead.
Key Highlights
Five core capabilities for attachment security
File Type Whitelist
Restrict uploads by file extension
Allowlist only lets approved formats such as jpg/png/pdf/doc through, blocking untrusted file types
Upload Size Control
Set max file upload limit globally
Set the maximum file size directly in settings (default 10MB) to protect server storage and bandwidth
Real-time Validation
Intercept disallowed files instantly
Patches the native AttachDocumentWidget so file types are validated instantly with a clear danger warning for disallowed files
Session Auto-Injection
Zero extra API calls for config access
Configuration is injected into the browser session through ir.http.session_info() with no extra API requests
Non-intrusive Settings
Integrated into General Settings
The attachment settings block sits naturally in General Settings, visible to technical users and matching the native Odoo style
General Features
Multi-Language & Multi-Company
Multi-Language & Multi-Company
Full multi-language translation support for global deployments. Native multi-company architecture with strict data isolation.
Full Version Support
Full Version Support
Works with Odoo 19, 18, 17, 16, 15, 14, 13, 12, EE/CE/.SH, compatible with Enterprise, Community and online SaaS
Full Open Source
Full Open Source
Released under LGPL-3. Transparent, auditable code, open for further development and customization.
Screenshots
Feature Overview
Attachment Settings Panel
How It Works
Configure the parameters
Set Parameters
Session injection
Session Injection
Real-time validation
Real-time Validation
Secure uploads
Safe Upload
Supported & Dependent Modules
- base_setup
- app_common
odooai.cn
Professional Odoo Solutions: Development, Implementation, Consulting & Training
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 8935 |
| Technical Name |
app_attachment_pro |
| License | OPL-1 |
| Website | https://www.odooai.cn |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module