Skip to main content

Attribute Value XML IDs

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

Product variants are built from product.template.attribute.value records: one per attribute value on a product template (for example Size: L on a Desk Organizer). Odoo gives these records no XML ID, so imports and integrations have to look them up by database id, which differs between databases.

With a predictable XML ID, extra prices, exclusions and variant combinations can be imported and synchronized with external systems by reference.

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 18.0.1.1.1

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 18.0.1.1.1
File Interpreter ABI Platform Actions
odoo_addon_product_template_attribute_value_xmlid-18.0.1.1.1-py3-none-any.whl Python 3 none any Details for odoo_addon_product_template_attribute_value_xmlid-18.0.1.1.1-py3-none-any.whl

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

Download URL odoo_addon_product_template_attribute_value_xmlid-18.0.1.1.1-py3-none-any.whl
Size 232.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0cc73ddc4dcd17035ba8040c8fc453e52a280d170297e20c44bd056f19e19e4
BLAKE2b-256 checksum
How to use checksums
4ae71e4ae4c62b4f156706860a3538df1d1793dfc02903780bfd3cadf6bb6f83
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 18.0.1.1.1

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-18.0.1.1.1-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