It is a standard business need to create variations of the Product by its color, shape, size, or the technology behind the same product. The iPhone is the easiest example to understand the product variant; it has many variations in capacity of the internal storage, such as 32GB, 64GB, 128GB, and 256GB on and the color of the phone such as Black, Jet Black, Gold, Rose Gold, Silver, and Red. The variations of the iPhone will be created based on these two attributes: internal storage and color.
There are four types of internal storage and six types of color available, the total number of variety created is equal to the multiplication of the total number of attributes, in our case 24 variations will be created.
Let's see how we can enable the product variant feature in Odoo, define the product attributes and their values, and create the product variants. The price can be increased or decreased based on the product attributes, let's see how to set the product variants price by setting the additional price for the attributes, we can increase or decrease the price by attribute. Finally, we will see how to display product variants on the product page and choose the correct variant, get the price for selected variant and add to the cart. Odoo also allows us to filter the product by its attribute on the product catalog page.