Skip to Content
Menu
This question has been flagged
5 Replies
1777 Views

hello All

I have done to import product variation data on odoo

Added same design color multiple sizes (total 5 count of sizes from S to XXL)


see the product page its clearly showing 5 variants

after clicking on one of the variant product SKU 

please see the below screenshot where product name visible same 922371 in all sizes row

so how do we differentiate size wise product name sizes wise?


Avatar
Discard
Author Best Answer

Hello


I have imported file with unique barcode value see the below screenshot of uploaded variant file with unique barcode



and odoo 17 product variant page its showing variation like below screenshot

please check above screenshot how Do we identify which SKU is for which size and color?


please help

Avatar
Discard
Best Answer

Hi,


This is the default function in Odoo which share the same name of the product template for its variants also. The simple way to maintain different name for a variants of a product, you may create a new text field for maintaining variant name using studio.


Hope this helps.


Thanks.

Avatar
Discard
Best Answer

Hello SAI OM TEXFAB PRIVATE LIMITED,


After watching your data, I found that you have imported similar name in product variants.

For SKU for different product variants, you just need to define unique barcode for each and every product variant of products.


When importing data on odoo, you also need to add/import barcode in it.


Hope this Helps,

If you need any help in customization feel free to contact us.



Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

Avatar
Discard
Author

Hello

I have imported file with unique barcode value see the below screenshot of uploaded variant file with unique barcode

and odoo 17 product variant page its showing variation like above screenshot

Best Answer

Step-by-Step Solutions

 1. Manual SKU Assignment

  • Go to Sales > Products > Variants.
  • Open each variant.
  • Set a unique Internal Reference (SKU) for each variant (like TSHIRT-S, TSHIRT-M, TSHIRT-L).

This ensures different SKUs per size/color.

 2. Automate SKU Generation (Developer Needed)

You can automate unique SKU generation by:

  • Concatenating the product template SKU + variant attributes (e.g., size).

Example Logic:

If the product is TSHIRT and variant attribute is M, automatically generate TSHIRT-M.

This can be done by:

  • Customizing the product.template and product.product models.
  • Using an @api.model or @api.onchange decorator to set the SKU automatically.

 Additional Techniques

  • Use Studio (if available): Add a computed field to generate SKUs based on attributes.
  • Apply attribute rules: Automatically set variant codes during product configuration.

Avatar
Discard
Related Posts Replies Views Activity
3
May 25
1273
3
Nov 24
8007
3
Sep 24
5871
0
Dec 17
3757
1
Apr 25
4941