Odoo Help


Is there a "code reference" generator or "internal reference" generator in Odoo 8 like in product multivariant app for OpenERP v7?

on 7/9/15, 11:12 AM 3,657 views

Fellow Odoo users,

We are trying to create multiple BOMs for different product variants and to the best of our knowledge we need each of them to have an internal reference so we can properly import their corresponding BOMs.

Unfortunately Odoo 8 seems to lack the ability to automatically generate internal references as the OpenERP 7 did with the multi-variant product addon.

Does anybody know how to achieve that?


Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 7/9/15, 3:57 PM

Have you seen:



MRP - BoM version

This module provides a state in the LdM whether to allow their use in manufacturing, to do the following states are defined:

Draft: The form will be available for data entry, and may move to "active" state.

Active: You can modify all of the form fields except for the fields: routing, BoM lines, and the new field Active, for false default when you create a new BoM. The "active" state may be passed back to state "draft", if we mark the new field "Allow re-edit the BoM list", this new field is defined in Configuration > Configuration > Manufacturing. The active state may move to state "Historical".

Historical: This is the last state of the LdM, you can not change any field on the form.

When the MRP BoM list is put to active, a record of who has activated, and when will include in chatter/log. It also adds a constraint for the sequence field to be unique.

New version : By clicking the button version, current BOM is moved to historical state, and a new BOM is creating based on this but with version number +1 and changing state to draft


Maybe I'm missing something here, but, this doesn't seem to address neither of my issues. Please refer to the extended explanation I posted.

on 7/9/15, 9:01 PM

I re-read your question and your expanded explanation - I don't have a different answer for automatic sequence generation - other than create a sequence and hook it up to the internal reference by modeling that customization after the product_sequence module I refer to.

Ray Carnes
on 7/15/15, 10:06 PM


AD LIBITOM, michel Guénard
on 11/22/15, 5:50 PM
On 7/9/15, 5:02 PM

Here is a more detailed explanation of the issue.

The source of my problem is to import different BOMs for different product variants. For example:
- I have a widget that can be red or blue as well as square or round.

Depending on what the customer selects, we will have to use a round or square case and red or blue ink.
To the best of my knowledge, the way to solve this is to import 4 BOMs:
A. Red ink and Square Box plus standard components
B. Red ink and Round Box plus standard components
C. Blue ink and Square Box plus standard components
D. Blue ink and Round Box plus standard components

And to import these different BOMs I need different "internal references". Someting like:

For 2 variants this is manageable to create these manually, however, for 100+ variations, this becomes a pain.
In OpenERP7 it was easy to create these codes. Now this functionality is missing. I would be also ok if someone would help determine how to import different recipes based on variants. :)

Did that help clarify the question?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 7/9/15, 11:12 AM
Seen: 3657 times
Last updated: 5/22/16, 2:21 AM