OdooWiki OCA HUB

Product Attribute Line Template

product_attribute_line_template folder_open OCA/product-attribute open_in_new
Product License: AGPL-3

This module allows defining reusable attribute templates and applying them to products in order to quickly generate attribute lines (without values).

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Create reusable attribute templates and apply them to products to quickly add attribute lines without values. Templates are managed from a new menu under Sales configuration.

This module adds a new concept of attribute templates to Odoo. You can create templates that group product attributes (like size, color) without specifying values. Each template has a name, an optional company, and a list of attributes with a sequence for ordering.

  • A new menu 'Attribute Templates' appears under Sales > Configuration, where you can create, edit, and archive templates. The list shows name, company, and active status; the form lets you add attribute lines.
  • On a product form, in the Variants tab, a new field 'Apply attribute template' lets you select a template. When selected, the attributes from the template are automatically added to the product's attribute lines, skipping any attributes already present. The selection is cleared after applying.
  • Templates are company-specific: you can leave the company empty to make a template available to all companies. Multi-company rules ensure users only see templates and lines belonging to their allowed companies.
  • Duplicate template names per company are prevented, and the same attribute cannot be added twice to a template.
  • Only users with product manager rights can manage templates.

The module depends on sale_management and extends the product.template model.

Depends on

sale_management

Menus it adds

Attribute Templates
Models and fields (3)
  • product.template · extends an existing modelattribute_template_id (Apply attribute template)
  • product.attribute.template · new modelname, active, line_ids (Attributes), company_id (Company)
  • product.attribute.template.line · new modelsequence, template_id, attribute_id (Attribute)

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/product-attribute.

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Go to Settings > Attribute Templates.
  • Create one or more attribute templates.
  • Open a product.
  • Select one or more templates in the Attribute Templates field.
  • The corresponding attribute lines will be automatically added.

If the template is changed before saving the product, any non-saved attribute lines previously added will be removed and replaced with the attributes of the newly selected template.

To combine several templates, save the product before selecting another one.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.