Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5 Risposte
1995 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
mag 25
1567
3
nov 24
8357
3
set 24
6158
0
dic 17
3935
1
apr 25
5173