模板导入Mixin框架,Template Import Mixin Framework
任意模型支持模板导入功能,从模板快速创建或更新记录 / Support template-based record creation and update for any Odoo model
通过抽象Mixin让任何Odoo模型具备模板功能,一键从模板创建或更新记录,支持明细行独立导入
Enable any Odoo model with template functionality via abstract mixin, one-click record creation/update with line-level import support
功能概述 / Overview
app_mixin_template 提供强大的模板导入框架,通过继承 mixin.template 抽象模型,让任何 Odoo 模型(如销售订单、采购订单、产品等)都能支持模板功能。用户可将常用配置保存为模板,后续一键从模板创建新记录或更新现有记录,大幅提升数据录入效率。
app_mixin_template provides a powerful template import framework. By inheriting the mixin.template abstract model, any Odoo model (sales orders, purchase orders, products, etc.) gains template functionality. Save common configurations as templates, then one-click create new records or update existing ones, dramatically improving data entry efficiency.
核心亮点 / Key Highlights
为什么选择这个模块 / Why Choose This Module
1. 任意模型模板化 / Any Model Templatable
Universal Mixin Inheritance
只需继承 mixin.template,任何模型即刻获得模板功能,无需重复开发。支持销售、采购、库存、财务等所有业务模型。
2. 一键导入向导 / One-Click Import Wizard
Smart Record Creation
从模板创建新记录或更新现有记录,智能填充所有字段。支持仅导入明细行模式,灵活适配不同业务场景。
3. 状态安全控制 / State-Safe Control
Data Integrity Protection
仅在草稿/发送状态允许导入,模板自动归档为非活跃状态,确保业务数据完整性与模板库清晰分离。
4. 智能模板过滤 / Smart Template Filtering
Context-Aware Selection
基于上下文的模板专属搜索(app_show_template_only),向导中只显示可用模板,避免误选活跃数据记录。
5. 灵活明细导入 / Flexible Line Import
Configurable Field List
通过 _template_import_lines 配置需要导入的字段,支持仅导入订单行等明细数据,不覆盖头部信息。
6. 模板追溯追踪 / Template Tracking
Source Record Traceability
import_template_id 字段自动记录每条记录由哪个模板创建,方便后续审计、统计和模板效果分析。
通用特性 / General Features
多语言与多公司
Multi-Language & Multi-Company
完整的多语言翻译支持,适配全球化企业部署。原生多公司架构,数据严格隔离。
全版本兼容
Full Version Support
支持 Odoo 19,18,17,16,15,14,13,12,EE/CE/.SH,兼容企业版、社区版及在线 SaaS。
代码完全开源
Full Open Source
基于 OPL-1 协议开源,代码透明可审计,支持二次开发与定制。
使用流程 / How It Works
4步快速启用模板导入功能 / 4 Steps to Enable Template Import
1. 继承Mixin模型
Inherit mixin.template in your model
2. 创建模板记录
Create template records with common configurations
3. 一键导入使用
One-click import from template to create/update records
4. 高效业务流转
Enjoy efficient business workflow with templates
支持与依赖模块 / Supported & Dependent Modules
- app_common - 基础公共模块 / Base Common Module
本模块为抽象Mixin框架,需配合具体业务模型使用。可在销售、采购、库存、财务等任何模型中继承使用。
odooai.cn
专业Odoo服务伙伴-开发实施咨询培训全套解决方案 / Professional Odoo Solutions
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 8336 |
| Technical Name |
app_mixin_template |
| 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