Attachment Pro
Configure attachment file types and size limits with real-time frontend validation
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 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
Configure a whitelist of allowed upload file formats; only specified formats like jpg/png/pdf/doc pass, blocking untrusted file types
Upload Size Control
Set max file upload limit globally
Configure the maximum single-file upload size directly in system settings, 10MB by default, preventing oversized files from consuming server storage and bandwidth
Real-time Validation
Intercept disallowed files instantly
Patch the native Odoo AttachDocumentWidget component to validate file types immediately on selection, with prominent danger alerts for invalid files
Session Auto-Injection
Zero extra API calls for config access
Config is injected into the browser session via ir.http.session_info(), so the frontend reads it without extra API requests
Non-intrusive Settings
Integrated into General Settings
The attachment config block is embedded in the general settings page, visible only to technical features group members, consistent with the native Odoo UI
General Features
Multi-Language & Multi-Company
Full translation support for global deployment. Native multi-company architecture with strict data isolation.
Full Version Support
Supports Odoo 18, 17, 16, 15, 14, 13, 12, EE/CE/.SH, compatible with Enterprise, Community and online SaaS.
Full Open Source
Open source under LGPL-3, transparent and auditable code, supports customization.
Screenshots
Key features at a glance
Attachment Settings Panel
How It Works
Set Parameters
Session Injection
Real-time Validation
Safe Upload
Supported & Dependent Modules
- System settings base / base_setup
- OdooAi common base module / app_common
odooai.cn
Professional Odoo Solutions
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 8380 |
| 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