Skip to Content
Menu
This question has been flagged
2 Replies
797 Views

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
Discard
Author Best Answer

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
Apr 23
2416
1
Nov 22
3685
2
Aug 25
1761
0
Jun 25
356
2
Nov 24
2288