|
@ -56,9 +56,11 @@ class ProductTemplate(models.Model): |
|
|
product_parent_id = pack.pack_line_ids[0].product_id |
|
|
product_parent_id = pack.pack_line_ids[0].product_id |
|
|
pack.description_sale = product_parent_id.description_sale |
|
|
pack.description_sale = product_parent_id.description_sale |
|
|
if product_parent_id.image: |
|
|
if product_parent_id.image: |
|
|
pack.image = product_parent_id.image |
|
|
|
|
|
pack.image_small = product_parent_id.image_small |
|
|
|
|
|
pack.image_medium = product_parent_id.image_medium |
|
|
|
|
|
|
|
|
pack.write({ |
|
|
|
|
|
'image': product_parent_id.image, |
|
|
|
|
|
'image_small': product_parent_id.image_small, |
|
|
|
|
|
'image_medium': product_parent_id.image_medium, |
|
|
|
|
|
}) |
|
|
if product_parent_id.product_image_ids: |
|
|
if product_parent_id.product_image_ids: |
|
|
pack.write({ |
|
|
pack.write({ |
|
|
'product_image_ids': [(6, 0, product_parent_id.product_image_ids.ids)] |
|
|
'product_image_ids': [(6, 0, product_parent_id.product_image_ids.ids)] |