## App Product Auto Sequence, Auto Code(Variants Supported)

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.

- Auto Sequence or code for every product.
- Auto Sequence or for every product variants, like product20171130-001.
- Product code must be Unique.
- Define different product type, each product type use own rule of sequence.
- Quick access in sale , inventory, system menu.
- Multi language support.

## Sample Rule: if we create on oct 2017

- Manufactured Products: M20171100001
- Components Products: C20171100001
- Sourced Products: S20171100001

Sepcial for variants. add [-00?]

- Products with color[red]: M20171100001-001
- Products with color[blue]: M20171100001-002
- Products with color[white]: M20171100001-003

## Installation:

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.

## How to use: Very simple

After installed the app. You can Go to anyone of the menu:

- Sales->Configuration->Products->Product Internal Type
- Inventory->Configuration->Products->Product Internal Type
- Settings->Sequences & Identifiers->Product Internal Type

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"

Go to 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.

## Technical Help & Support

#### For any type of technical help & support requests, Feel free to contact us

guohuadeng@hotmail.com

#### Via QQ: 300883

300883@qq.com

#### Visit our website for more support.

http://www.sunpop.cn