OdooWiki OCA HUB

Product Multi Code

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

This module allows multiple internal references (default_code) per product.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Lets you store several internal references (codes) for the same product, instead of only one. The first code in the list is shown as the product's main Internal Reference.

This module adds a new list of Internal References on products and product templates, so a single product can be found under more than one code.

  • On a product form (and on the product variant quick-edit screen) you see a new editable table of Internal References, where you can add, reorder and remove codes. The standard Internal Reference field becomes read-only and always shows the first code of the list.
  • On a product template form the same table appears when the template has only one variant; templates with several variants keep the standard behaviour.
  • Codes must be unique: if you try to save a code that already exists on another product, Odoo blocks it with an error naming the product that already uses it. Each code must be linked to a product or a template.
  • Searching products by Internal Reference also finds products through any of their extra codes, both in the product search view and in the stock product search.
  • When the module is installed, existing single internal references are automatically copied into the new list. Only users in the new "Manager product multi code" group can create, change or delete these codes; other users can only read them.

Depends on

productstock
Models and fields (3)
  • product.product · extends an existing modeldefault_code (Internal Reference), default_code_ids (Internal References)
  • product.template · extends an existing modeldefault_code_ids (Internal References)
  • product.default_code · new modelname (Internal Reference), sequence, product_id (Product), product_tmpl_id

Text generated by AI (DeepSeek) from reading the Odoo 17.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 17.0

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

terminal Installation and usage

OCA documentation · Odoo 17.0

To use this module:

  • Add the administrative users to the "Manager product multi code" group
  • Go to the Products menu.
  • Open a product.
  • You will see a new section for Internal References where you can add multiple codes.

The system will automatically link the internal code with the corresponding product and template. If you try to add a duplicate internal reference, a validation error will be raised.

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.