| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 8277 |
| Technical Name |
app_attachment_pro |
| License | OPL-1 |
| Website | https://www.odooai.cn |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 8277 |
| Technical Name |
app_attachment_pro |
| License | OPL-1 |
| Website | https://www.odooai.cn |
附件增强管理 / 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 在 Odoo 系统设置中提供集中化的附件安全管理面板,管理员可一键配置允许上传的文件格式白名单和单文件最大体积限制。前端实时校验确保用户在上传时即被拦截非法文件,无需依赖服务端事后校验。配置信息通过 Session 自动注入前端,零额外 API 开销。
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
1. 附件类型白名单 / File Type Whitelist
Restrict uploads by file extension
配置允许上传的文件格式白名单,仅 jpg/png/pdf/doc 等指定格式可通过,全面拦截不可信文件类型
2. 上传大小管控 / Upload Size Control
Set max file upload limit globally
系统设置界面直接配置单文件最大上传体积,默认10MB,防止超大文件占用服务器存储和带宽
3. 前端实时校验 / Real-time Validation
Intercept disallowed files instantly
Patch Odoo 原生 AttachDocumentWidget 组件,用户选择文件时即时校验类型,非法文件弹出醒目的危险提示
4. Session自动注入 / Session Auto-Injection
Zero extra API calls for config access
配置信息通过 ir.http.session_info() 自动注入浏览器会话,前端无需额外 API 请求即可读取
5. 零侵入设置面板 / Non-intrusive Settings
Integrated into General Settings
附件配置块优雅嵌入常规设置页面,仅对技术特性组成员可见,与 Odoo 原生界面风格统一
通用特性 / General Features
多语言与多公司
Multi-Language & Multi-Company
完整的多语言翻译支持,适配全球化企业部署。原生多公司架构,数据严格隔离。
全版本兼容
Full Version Support
支持 Odoo 18,17,16,15,14,13,12,EE/CE/.SH,兼容企业版、社区版及在线 SaaS。
代码完全开源
Full Open Source
基于 LGPL-3 协议开源,代码透明可审计,支持二次开发与定制。
界面截图 / Screenshots
核心功能界面一览
附件设置面板 / Attachment Settings Panel
使用流程 / How It Works
配置参数
Set Parameters
Session注入
Session Injection
实时校验
Real-time Validation
安全上传
Safe Upload
支持与依赖模块 / Supported & Dependent Modules
- 系统设置基础 / base_setup
- OdooAi 通用基础模块 / app_common
odooai.cn
专业Odoo服务伙伴-开发实施咨询培训全套解决方案 / Professional Odoo Solutions
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