Skip to content

[20.0][ADD] product_template_xmlid - #29

Merged
bosd merged 2 commits into
20.0from
20.0-add-product_template_xmlid
Nov 27, 2026
Merged

bosd merged 2 commits into
20.0from
20.0-add-product_template_xmlid

Conversation

@bosd

@bosd bosd commented Nov 26, 2026

Copy link
Copy Markdown
Member

New module product_template_xmlid: products created in the interface, or imported without an XML ID, get the XML ID product_template.<internal reference or name>.

  • Generated on create (also via product.product), after the internal reference is set.
  • Records loaded with an XML ID (imports with an ID column, data files) are left alone.
  • Name taken by another product: skipped and logged, never overwritten.
  • Actions > Generate XML IDs on the products list for existing products.
  • With product_template_attribute_value_xmlid installed, the attribute values of these products get an XML ID too.
  • Translations de/fr/es/nl, Odoo Apps page and cover.

Also makes the product_template_attribute_value_xmlid tests independent of the new module.

Rework of the idea in the old 18.0-product_template_xmlid branch.

bosd added 2 commits November 26, 2026 16:32
…ML IDs

Create the test products without the XML IDs that product_template_xmlid
gives to new products, so the tests also pass with it installed.
Give products created in the interface, or imported without an XML ID,
the XML ID product_template.<internal reference or name>, with an action
to generate the missing ones. Rework of the idea of the earlier
18.0-product_template_xmlid branch. Together with
product_template_attribute_value_xmlid, the attribute values of these
products get an XML ID too.
@bosd
bosd merged commit 28a9301 into 20.0 Nov 27, 2026
3 checks passed
@bosd
bosd deleted the 20.0-add-product_template_xmlid branch November 27, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant