Product variants

Product variants are used to give single products a variety of different characteristics and options for customers to choose from, such as size, style, or color, just to name a few.

Products variants can be managed via their individual product template, or by navigating to either the Product Variants or Attributes page. All of these options are located within the Odoo Sales application.

Example

An apparel company has the following variant breakdown for one their best-selling t-shirts:

  • Unisex Classic Tee

    • Color: Blue, Red, White, Black

    • Size: S, M, L, XL, XXL

Here, the T-shirt is the product template, and T-shirt: Blue, S is a specific product variant.

Color and Size are attributes, and the corresponding options (like Blue and S) are values.

In this instance, there is a total of twenty different product variants: four Color options multiplied by five Size options. Each variant has its own inventory count, sales totals, and other similar records in Odoo.

Configuration

To use product variants, go to Sales ‣ Configuration ‣ Settings, then enable the Variants feature in the Product Catalog section, and click Save at the top of the Settings page.

Attributes

Before product variants can be set up, attributes must be created. To create, manage, and modify attributes, navigate to Sales app ‣ Configuration ‣ Attributes.

Note

The order of attributes on the Attributes page dictates how they appear on the Product Configurator, Point of Sale dashboard, and eCommerce pages.

To create a new attribute from the Attributes page, click New. Doing so reveals a blank attributes form that can be customized and configured in a number of ways.

A blank attribute creation form in the Odoo Sales application.

First, create an Attribute Name, such as Color or Size.

Next, select one of the options from the Display Type field. The Display Type determines how this product is shown on the online store, Point of Sale dashboard, and Product Configurator.

The following Display Type options are available:

Options appear as selectable buttons.

Pills display type

The Variant Creation field determines if/when a new variant is automatically created once an attribute is added to a product.

Important

If the attribute’s Display Type is Multi-checkbox, you must set the Variant Creation field to Never.

  • Instantly: creates all possible variants as soon as attributes and values are added to a product template.

  • Dynamically: creates variants only when corresponding attributes and values are added to a sales order.

  • Never: prevents automatic creation of variants.

Warning

Once added to a product, an attribute’s Variants Creation mode cannot be edited.

Attribute values

Attribute values should be added to the Attribute Values tab. Values can be added to an attribute at any time, if needed.

To add a value, click Add a line in the Attribute Values tab.

Then, enter the name of the value in the Value column. Next, check the box in the Is custom value column, if the value is custom (i.e. the customer gets to provide unique specifications that are specific to this particular value).

Colors

Next to Display Type, select the Color option. Go to the Attribute Values tab to modify the value settings.

Add an image of the pattern to an attribute.

To choose a color, click the blank circle in the Color column, which reveals an HTML color selector pop-up window.

Selecting a color from the HTML color pop-up window that appears on attribute form.

In this pop-up window, select a specific color by dragging the color slider to a particular hue, and clicking on the color portion directly on the color gradient window.

Or, choose a specific color by clicking the dropper icon, and selecting a desired color that’s currently clickable on the screen.

Businesses can attach images to product variant attribute values for customers to view on an eCommerce website. To do so, click the (camera) icon, then click the (pencil) icon and select an image from your local drive. This image will appear as a color option for the relevant product.

Pattern as color option.

Tip

Attributes can also be created directly from the product template by adding a new line and typing the name into the Variants tab.

Once an attribute is added to a product, that product is listed and accessible, via the attribute’s Related Products smart button. That button lists every product in the database currently using that attribute.

Product variants

Once an attribute is created, use the attribute (and its values) to create a product variant. To do that, go to Sales app ‣ Products ‣ Products, and select an existing product to view that desired product’s form. Or, click Create to create a new product, to which a product variant can be added.

On the product form, click the Attributes & Variants tab to view, manage, and modify attributes and values for the product.

The attributes and values tab on a typical product form in Odoo Sales.

To add an attribute to a product, and subsequent attribute values, click Add a line in the Attributes & Variants tab. Then, choose the desired attribute from the drop-down menu that appears.

Tip

Attributes can be created directly from the Attributes & Variants tab of a product form. To do that, start typing the name of the new attribute in the blank field, and select either Create or Create and edit… from the mini drop-down menu that appears.

Clicking Create creates the attribute, which can be customized later. Clicking Create and edit… creates the attribute, and a Create Attribute pop-up form appears. In the pop-up form, proceed to modify the attribute in a number of ways.

Once an attribute is selected in the Attribute column, proceed to select the specific attribute values to apply to the product, via the drop-down menu available in the Values column.

Note

There is no limit to how many values can be added.

Tip

Similar product variant creation processes are accessible through the Purchase, Inventory, and eCommerce applications.

Configure variants

To the far-right of the attribute line is a Configure button. When clicked, Odoo reveals a separate page showcasing those specific Product Variant Values.

The Product Variant Values page accessible via the Configure button on a product form.

Here, the specific Value name, HTML Color Index (if applicable), and Value Price Extra are viewable.

Note

The Value Price Extra represents the increase in the sales price if the attribute is selected.

When a value is clicked on the Product Variant Values page, Odoo reveals a separate page, detailing that value’s related details.

A Product Variant Values page accessible via the Product Variants Values general page.

On the specific product variant detail page, the Value and Value Price Extra fields can be found, along with an Exclude for field.

In the Exclude for field, different Product Templates and specific Attribute Values can be added. When added, this specific attribute value will be excluded from those specific products.

Variants smart button

When a product has attributes and variants configured in its Attributes & Variants tab, a Variants smart button appears at the top of the product form. The Variants smart button indicates how many variants are currently configured for that specific product.

The variants smart button at the top of the product form in Odoo Sales.

When the Variants smart button is clicked, Odoo reveals a separate page showcasing all the specific product variant combinations configured for that specific product.

The variants page accessible via the variants smart button on the product form in Odoo.

Impact of variants

In addition to offering more detailed product options to customers, product variants have their own impacts that can be taken advantage of throughout the Odoo database.

  • Barcode: barcodes are associated with each variant, instead of the product template. Each individual variant can have its own unique barcode/SKU.

  • Price: every product variant has its own public price, which is the sum of the product template price and any extra charges for particular attributes.

    Example

    A red shirt’s sales price is $23 – because the shirt’s template price is $20, plus an additional $3 for the red color variant. Pricelist rules can be configured to apply to the product template, or to the variant.

  • Inventory: inventory is counted for each individual product variant. On the product template form, the inventory reflects the sum of all variants, but the actual inventory is computed by individual variants.

  • Manufacturing: a single BoM can be used for multiple variants of the same product.

    Refer to Managing BoMs for product variants documentation for more information.

  • Picture: each product variant can have its own specific picture.

Note

Changes to the product template automatically apply to every variant of that product.

Adding and deleting attributes from product variants

When attributes are added or deleted from products, variants that have already been created are affected. Depending on whether or not these variants have been used in orders, they are archived or deleted and recreated.

  • Variants that have not been used in an order are deleted and recreated with the new attributes. This may result in the deletion of additional customizations, depending on how the variants were configured.

  • Variants that have been previously used in one or more orders are archived and removed from the product catalog instead of being deleted.

Example

A business offers leather motorcycle jackets with the following attributes and values for a total of 27 product variants:

  • Size: Small, Medium, Large

  • Color: Black, Brown, Natural

  • Material: Leather, Vegan Leather, Premium Leather

Due to rising costs, the business makes the decision to stop offering different leathers and removes the “Material” attribute from the product form. This has the following effects:

  • Any leather jacket variants that have been sold will be archived

  • Any leather jacket variants that have not been sold will be deleted

  • A new set of variants using just Size and Color attributes will be created, for a total of 9 product variants

The business owner can find archived product variants by navigating to Sales app ‣ Products ‣ Product Variants, clicking the drop-down in the search bar, and finally clicking the Archived filter. Any deleted variants and their customizations will be lost.

See also

Import products