Template Import Mixin Framework
Support template-based record creation and update for any Odoo model
Give any Odoo model template capabilities through an abstract mixin — create or update records from templates in one click, with independent import of detail lines
Enable any Odoo model with template functionality via abstract mixin, one-click record creation/update with line-level import support
Overview
app_mixin_template provides a powerful template import framework. By inheriting the mixin.template abstract model, any Odoo model (such as sales orders, purchase orders, and products) gains template functionality. Users can save frequently used configurations as templates, then create new records from a template or update existing records in one click, greatly improving data entry efficiency.
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
Any Model Templatable
Universal Mixin Inheritance
Simply inherit mixin.template and any model gains template capabilities instantly — no repeated development required. Supports all business models across sales, purchase, inventory, accounting, and more.
One-Click Import Wizard
Smart Record Creation
Create new records from a template or update existing ones, with all fields filled intelligently. Supports a detail-lines-only import mode, flexibly adapting to different business scenarios.
State-Safe Control
Data Integrity Protection
Import is allowed only in draft/sent states, and templates are automatically archived as inactive, ensuring clear separation between business data integrity and the template library.
Smart Template Filtering
Context-Aware Selection
Context-based template-only search (app_show_template_only) shows only available templates in the wizard, avoiding accidental selection of active data records.
Flexible Line Import
Configurable Field List
Configure which fields to import via _template_import_lines, supporting imports of detail data such as order lines only, without overwriting header information.
Template Tracking
Source Record Traceability
The import_template_id field automatically records which template created each record, facilitating later auditing, statistics, and template effectiveness analysis.
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
Open-sourced under the OPL-1 license, with transparent, auditable code that supports secondary development and customization.
How It Works
4 Steps to Enable Template Import
1. Inherit the mixin model
Inherit mixin.template in your model
2. Create template records
Create template records with common configurations
3. Import and use in one click
One-click import from template to create/update records
4. Efficient business flow
Enjoy efficient business workflow with templates
Supported & Dependent Modules
- Base Common Module
This module is an abstract mixin framework and must be used with concrete business models. It can be inherited by any model in sales, purchase, inventory, accounting, and more.
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 | 8907 |
| 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