İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
820 Görünümler

Hello,

I have a big problem to which I hope somebody has an answer. We have products with attributes that dynamically generate variants. When we first define a product, we set the Weight field to a value in the product template. When a client visits our store and configures a variant based on the attributes, the Weight field is no longer visible in the product template and moves to the product variants. This seems like a logical move, since each variant might have another weight, so we should be able to change it at a variant level. But the problem is that the weight in newly generated variants is undefined ([null] in db). Since our shipping price is calculated based on the weight of the variant, if we don't set the weight in the variant asap, the shipping price is zero for new orders. This is also the same for the Volume field.

Is there a way to copy the Weight and Volume values set on the product template to each dynamically generated variant by default? I think this should be the default behavior for Odoo. 

I hope I explained my problem so that it is understood and somebody has a solution for it.

Thank you





Avatar
Vazgeç
Üretici En İyi Yanıt

Hi Andry,

Thanks for taking the time to reply to my post. For the first option, the weight is set by the time the variants are generated, but it doesn't get copied, I get a 0.00 weight for all variants generated.

For the second option, I'm just starting with Odoo. Can you give me some pointers in the right direction? Any help is much appreciated.

Thank you

Avatar
Vazgeç
En İyi Yanıt

Hi Vasela,

Since you know that the variants are generated when you add the product attributes into the product template.

Here are few things that you can try:

  1. To set the weight by the time you add the variants
  2. To set an automated action that copy the weight from template to variants when the variants are created

Hope this helps.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 23
2422
1
Kas 22
3708
2
Ağu 25
1803
0
Haz 25
370
2
Kas 24
2298