Skip to main content

Create product references according to attributes

Project description

License: AGPL-3

Product Code Builder

This module creates a Internal Reference (default_code) from values in variant’s attributes.


Create code with attributes (like memory, color, wifi).

Attributes order is preserved while code creation.


Try me on Runbot


  • Set ‘code’ field in attributes and attributes values models for code creation.

  • Set sequence in attribute model to defined product varaiant code attribute order.


  • Automatic Reference behavior can be turn off by uncheck on product template.

  • Internal Reference Prefix can be defined on product template.



This module may be not compatible with other modules which manage default_code like product_sequence

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 smashing it by providing a detailed and welcomed feedback.

Known issues / Roadmap

MIGRATION INSTRUCTION: Some fields in this module are the same than those in product_attribute_priority module. For v10 or v9, it’s required to add dependency between these modules.




Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page