summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/solr/product_template.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-01-31 16:19:56 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-01-31 16:19:56 +0700
commitc5bcd2528adefe9312b482b0b7dcedef370056c0 (patch)
treee1b94521d9600e2273d245d37ba90e054f56ec50 /indoteknik_custom/models/solr/product_template.py
parent1f491c22d519edb0df0515eba803dcd2a3436cf8 (diff)
parent5e3e425902513c9a013f208c9e374ea322e516c3 (diff)
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/models/solr/product_template.py')
-rw-r--r--indoteknik_custom/models/solr/product_template.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py
index bba98edc..062f1455 100644
--- a/indoteknik_custom/models/solr/product_template.py
+++ b/indoteknik_custom/models/solr/product_template.py
@@ -1,6 +1,7 @@
-from odoo import models, fields, api
from datetime import datetime
+from odoo import api, fields, models
+
class ProductTemplate(models.Model):
_inherit = "product.template"
@@ -70,7 +71,7 @@ class ProductTemplate(models.Model):
"default_code_s": template.default_code or '',
"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_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,
"weight_f": template.weight,