diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-03 08:52:33 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-03 08:52:33 +0700 |
| commit | 3e0c3172cf929ee815dfdeccbd39a7ef91b5a152 (patch) | |
| tree | 08c17fa968b4c36e174a6f43f1727285b36bc52c | |
| parent | 986cf2eef7d5aafbdf8d936db5431f5ee1d1e830 (diff) | |
push image_carousels solr
| -rw-r--r-- | indoteknik_custom/models/solr/product_template.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py index a1fc93cd..6c94efec 100644 --- a/indoteknik_custom/models/solr/product_template.py +++ b/indoteknik_custom/models/solr/product_template.py @@ -96,10 +96,7 @@ class ProductTemplate(models.Model): "product_rating_f": template.virtual_rating, "product_id_i": template.id, "image_s": self.env['ir.attachment'].api_image('product.template', 'image_512', template.id), - 'image_carousels': {'set': [ - self.env['ir.attachment'].api_image('image.carousel', 'image', carousel.id) - for carousel in template.image_carousel_lines - ]}, + "image_carousels": [self.env['ir.attachment'].api_image('image.carousel', 'image', carousel.id) for carousel in template.image_carousel_lines], 'image_mobile_s': self.env['ir.attachment'].api_image('product.template', 'image_256', template.id), "variant_total_i": template.product_variant_count, "stock_total_f": template.qty_stock_vendor, |
