Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5 Odpowiedzi
1902 Widoki

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?


Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
maj 25
1439
3
lis 24
8185
3
wrz 24
6026
0
gru 17
3835
1
kwi 25
5074