Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
1882 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
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

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
kvě 25
1420
3
lis 24
8157
3
zář 24
6011
0
pro 17
3825
1
dub 25
5059