Skip to main content

Generate XML IDs for Product Template Attribute Values

Beta License: LGPL-3 GetFluvo/addons

This module gives every product.template.attribute.value record a predictable XML ID, so that product variants can be referenced in imports and integrations without looking up database ids.

When Odoo creates a template attribute value, the module adds an XML ID product_template_attribute_value.<template>_<value>, where:

  • <template> is the name of the XML ID of the product template;

  • <value> is the name of the XML ID of the attribute value.

Characters other than letters, digits and underscores are replaced by _.

No XML ID is generated when the template or the attribute value has no XML ID (the result would not be predictable), or when the name is already used by another record; the latter is logged as a warning.

Table of contents

Use Cases / Context

Purpose:

The module ensures that every product.template.attribute.value record has a predictable and consistent XML ID, which is crucial for:

Data Integration: Facilitating seamless data exchange with external systems that rely on stable identifiers. Automation: Simplifying automated processes within Odoo that need to reference specific attribute value combinations.

Use Cases:

E-commerce platforms that need to synchronize product variant data with Odoo. Warehouse management systems that rely on unique identifiers for product configurations. Any scenario where stable and predictable identifiers for product attribute combinations are required. This description provides a good overview of the module’s purpose and functionality.

Installation

[ This file must only be present if there are very specific installation instructions, such as installing non-python dependencies. The audience is systems administrators. ]

Configuration

To configure this module, you need to:

  1. Ensure that the product module is installed in your Odoo instance, as this module is a dependency.

  2. Place the product_template_attribute_value_xmlid module directory in your Odoo addons path.

  3. Install the product_template_attribute_value_xmlid module through the Odoo Apps interface.

Usage

XML IDs are generated automatically when attribute values are added to a product template.

To generate the XML IDs of records that existed before the module was installed:

  1. Go to Sales > Configuration > Product Template Attribute Values.

  2. Open any record.

  3. Click Generate XML IDs.

All template attribute values without a generated XML ID get one, if their template and attribute value have an XML ID.

Known issues / Roadmap

  • This module might result in unpredictable behaviour when used with enterprise module product_barcodelookup.

Changelog

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Fluvo

Contributors

  • bosd

Other credits

Maintainers

This module is part of the GetFluvo/addons project on GitHub.

You are welcome to contribute.

Metadata

Release files for odoo-addon-product-template-attribute-value-xmlid 19.0.1.0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-product-template-attribute-value-xmlid 19.0.1.0.0.2
File Interpreter ABI Platform Actions
odoo_addon_product_template_attribute_value_xmlid-19.0.1.0.0.2-py3-none-any.whl Python 3 none any Details for odoo_addon_product_template_attribute_value_xmlid-19.0.1.0.0.2-py3-none-any.whl

Release files / odoo_addon_product_template_attribute_value_xmlid-19.0.1.0.0.2-py3-none-any.whl

Download URL odoo_addon_product_template_attribute_value_xmlid-19.0.1.0.0.2-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
755dcaa635b26a31b091ccc87a340431d8aaf4040051859dc68fa340cad32dc9
BLAKE2b-256 checksum
How to use checksums
0332870dd1daa9002d689ee375ca3e0e5dbe5b1f26d6a1f97cfa4f955ceba080
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for odoo-addon-product-template-attribute-value-xmlid 19.0.1.0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for odoo_addon_product_template_attribute_value_xmlid-19.0.1.0.0.2-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page