This module allows to associate a sequence to the product reference.
The reference (default code) is unique (SQL constraint) and required.
Support Product with or without Variants.
Sepcial for variants. add [-00?]
Prior to installing this module, if you have any existing products you should ensure they already have a
unique reference (or no reference) set.
Products with a default_code of '/' or empty will automatically be assigned a code of "!!DP!!" followed
by the system id for that product.
Otherwise the setting of the unique constraint will fail and the module will fail to install.
Notice:
Odoo product variants is very special.
When u create a product(not product template) with attribute, It would delete the first product, which
have no attribute.
So it's very normal that the first product variants begin wit ???-002.
And we make a rule that the product variants can only create after you create normal product template.
After installed the app. You can Go to anyone of the menu:
You would see the default Product Intertype we create.
And create the product and code by yourself.
Notice: The "Sequence Code" Field of sequence must be "product.product"