v 16.0 Third Party 21
Live Preview
Odoo Online
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 441
Technical Name product_dynamic_code
LicenseSee License tab
Versions 17.0 16.0 11.0 14.0 15.0 13.0 12.0
You bought this module and need support? Click here!
Odoo Online
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 441
Technical Name product_dynamic_code
LicenseSee License tab
Versions 17.0 16.0 11.0 14.0 15.0 13.0 12.0
As soon the app is installed, current products' references might be re-calculated

This is an Odoo tool to implement product automatic coding. The app is flexible enough to reflect almost any product reference structure since it lets you define as many code parts and as complex criteria as you need.

Advanced rules for product references

Define code positions that will satisfy business specifics. Have as many parts as it's needed. Distinguish complex criteria to apply parts for products of specific kinds and not for others

Automatic code generation

The app regularly checks updates of code rules and of products. Product references are automatically changed accordingly without user interactions

Manual product numbering

Mark certain products as 'Manual reference': their codes will not be influenced by the rules and will become editable. Products with pre-defined codes (e.g. created by import) by default have manual references

Secured codes

The right to define product coding rules belongs only to Odoo administrators

Based on standard Odoo tools

Product coding is global: rules are equally applied for each company, but you can restrict products in rules by using filters by company.

Codes are calculated in a current user language. Avoid using translated fields for code rules.

Automatic product references are based on flexible rules

  • Product references are generated based on code parts. Define as many dynamic and static parts as you need. For example, the first position relates to a category, the second - to a manufacturer, the third - to the attribute 'material', etc.
  • Code positions for certain products might be empty: e.g. for services, there is no sense to have a code part of the attribute 'material'
  • Each position has rules to generate a code value which might be static (e.g. '-AL') or dynamic (e.g. first 2 letters of category name). In order for a code part to be calculated for a product, there should be at least a single rule this product satisfies
  • As dynamic code use any standard or custom field of a product variant or template: char, integer, float, date and date with time, selection, and many2one. In the case of many2one field (e.g. a related product category) you should select its linked field (for example, a category name)
  • For dynamic code, use not only the whole field value but also its part. For instance, apply the first 2 letters (0-1) of a category name or only the month of a manufacture date (5-7). Leave '0' at both the start and the end to retrieve the whole field value.

Product references are auto-updated

  • When a product is created or changed
  • Regularly by the cron job for all products (have a look a the tab 'Configuration', the section 'Scheduled jobs')
  • Manually when you push the button on a product form
  • Manually for all products when you push the button on the configuration page
  • Such complex logic is introduced to avoid slowdowns. The point is that code rules are advanced and there is no way to define recalculation triggers. Generating codes on the fly will result in low performance. That is why to make sure codes are generated, Odoo regularly looks over all products.

You may change the frequency of automatic references' updates. To this end:

  1. Turn on debug mode
  2. Go to technical settings > Automation > Scheduled jobs
  3. Find the job 'Construct Dynamic Codes'.

According to the current Odoo Apps Store policies:

  • every module bought for version 12.0 and prior gives you access to all versions up to 12.0.
  • starting from version 13.0, every module version should be purchased separately.
  • disregarding the version, purchasing a tool grants you a right to all updates and bug fixes within a major version.

Take into account that the faOtools team does not control those policies. For all questions, please contact the Odoo Apps Store representatives​ directly​.

The easiest approach is to use the Odoo store built-in workflow:

1. Open the module's page and click the button Deploy on odoo.sh

2. After that, you will be redirected to the GitHub page. Login to your account and click 'Create a new repo' or use the existing one. Please, make sure, that your repository is private. It is not permitted to publish the apps under the OPL-1 license. If necessary, create a new repo for your Odoo.sh project

3. Then, go to odoo.sh and click on the deploy button, submit the decision in the pop-up window and click 'Continue'. The action will trigger the installation process.

These steps would install the app for your project production branch. If you wanted to deploy the apps for other branches or update the module, you should undertake the following actions:

1. Upload the source code for the app from the Odoo store

2. Commit the module to a required GitHub repository. Make sure that none of the app folders/files are ignored (included in the .gitignore of your repo). Repositories are automatically created by odoo.sh, which might add by default some crucial items there (e.g. /lib). You should upload all module directories, subdirectories, and files without exceptions

3. Deploy a target branch of the odoo.sh project or wait until it is automatically built if your settings assume that.

  1. Unzip the source code of the purchased tools in one of your Odoo add-ons' directories;

  2. Re-start the Odoo server;

  3. Turn on the developer mode (technical settings);

  4. Update the apps' list (the apps' menu);

  5. Find the app and push the button 'Install';

  6. Follow the guidelines on the app's page if those exist.

Yes, sure. Take into account that Odoo automatically adds all dependencies to a cart. You should exclude previously purchased tools.

A red/orange warning itself does not influence features of the app. Regretfully, sometimes our modules do not pass standard automatic tests, since the latter assumes behavior which is in conflict with our apps goals. For example, we change price calculation, while standard Odoo module tests compare final price to standard algorithm.

So, first of all, please check deployed database features. Does everything work correctly?

If you still assume that warning influences real features, please contact us and forward full installation logs and the full lists of deployed modules (including core and third party ones).

Regretfully, we do not have a technical possibility to provide individual prices.

No, third party apps can not be used on Odoo Online.

Yes, all modules marked in dependencies are absolutely required for a correct work of our tool. Take into account that price marked on the app page already includes all necessary dependencies.  

The price for our modules is set up in euros. The Odoo store converts prices in others currencies according to its internal exchange rate. Thus, the price in US Dollars may change, when exchange rate changes.

Odoo demonstration databases (live previews)

For this app, we might provide a free personalized demo database.

To demand such a database, press the button "Live Preview" on the top of this page or copy the link https://faotools.com/s/2ctvwj

No phone number or credit card is required to contact us: only a short email sign up which does not take more than 30 seconds.

By your request, we will prepare an individual live preview database, where you would be able to apply any tests and check assumptions for 14 days.

Bug reporting

In case you have faced any bugs or inconsistent behavior, do not hesitate to contact us. We guarantee to provide fixes within 60 days after the purchase, while even after this period we are strongly interested to improve our tools.

To send us a bug report: press the "Website" link on the top of this page and push the button "Bug Report" (the tab Support). Alternatively, copy the link https://faotools.com/s/jgeh86

No phone number or credit card is required to contact us: only a short email sign up which does not take more than 30 seconds.

Please include in your request as many details as possible: screenshots, Odoo server logs, a full description of how to reproduce your problem, and so on. Usually, it takes a few business days to prepare a working plan for an issue (if a bug is confirmed) or provide you with guidelines on what should be done (otherwise).

Public features requests and module ideas (free development)

We are strongly motivated to improve our tools and would be grateful for any sort of feedback. In case your requirements are of public use and might be efficiently implemented, the team would include those in our to-do list.

Such a to-do list is processed on a regular basis and does not assume extra fees. Although we cannot promise deadlines and final design, it might be a good way to get desired features without investments and risks.

To share ideas: press the "Website" link on the top of this page and push the button "Share Features Ideas" (the tab Support). Alternatively, copy the link https://faotools.com/s/xt08lu

No phone number or credit card is required to contact us: only a short email sign up which does not take more than 30 seconds.

Questions and misc issues

Feel free to contact us with any other concerns, doubts, or questions: press the "Website" link on the top of this page and push the button "Raise Question" (the tab Support). Alternatively, copy the link https://faotools.com/s/jveue7

About the team

faOtools (faotools.com, former odootools.com) is the team of developers and business analysts to help you extend Odoo's potential. We have been communicating with end users to whom the software became the main business tool since 2012. As a result, we are proud of dozens of successful Odoo apps developed. We are open for new ideas and challenges to create the best Odoo apps for business needs all over the world.

You may like the tools

Cloud Storage Solutions

The tool to flexibly structure Odoo attachments in folders and synchronize directories with cloud clients: Google Drive, OneDrive/SharePoint, Nextcloud/ownCloud, and Dropbox. DMS. File Manager. Document management system

KnowSystem: Knowledge Base System

The tool to build a deep and structured knowledge base for internal and external use. Knowledge System. KMS. Wiki-like revisions.

Universal Appointments and Time Reservations

The tool for time-based service management from booking appointments to sales and reviews

OneDrive / SharePoint Odoo Integration

The tool to automatically synchronize Odoo attachments with OneDrive files in both ways

Google Drive Odoo Integration

The tool to automatically synchronize Odoo attachments with Google Drive files in both ways

Stock Demand Trends and Forecast

The tool to calculate stock demand trends and make predictions for future demand statistically

Product Management Interface

The tool to search, select and mass update product templates

Advanced Variant Prices

The tool to configure variant prices based on attributes coefficients and surpluses

Stocks by Locations

The tool to make inventory data essential and comfortable for elaboration. Stocks analysis

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.


Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
There are no ratings yet!
Doesn't pass tests
Pablo Albrecht
on 12/5/23, 3:55 AM Confirmed Purchase

This app doesn't pass tests, when asked the owner said it's not a problem tests are optional.... clearly someone 

Re: Doesn't pass tests
Odoo Tools
on 12/5/23, 4:54 AM Author

Hello Pablo,

the standard Odoo tests might fail since they assume checking the standard Odoo features. Our apps add features that might contradict the standard Odoo features, so the tests might not pass.

In particular, this module doesn't pass the tests that check internal references of Odoo products. However, our app modifies those references. Thus, Odoo warns you about this. For example, an Odoo anticipates an empty code while our app calculates a not empty on purpose.

Regretfully, that's not technically possible to inherit and change standard Odoo tests. That's why the module cannot say now the internal references should suit the new logic.

Simultaneously, the module in no way breaks Odoo features, only changes it and works as expected in Odoo databases. So, yes, that's normal when standard Odoo tests fail in custom modules.

We hope this explanation will help.