summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-27 09:00:34 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-27 09:00:34 +0700
commitbc15f6c49970e6b57a3be07327575ca85a66bb5b (patch)
tree34cd22a4488002374560df6bc53df8eae3a5eadf
parenta54e68d0ccf84de5edb602744cf2de399c26ba49 (diff)
<Miqdad> fix voucher solr error
-rw-r--r--indoteknik_custom/models/solr/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py
index c4aefe19..a7beca12 100644
--- a/indoteknik_custom/models/solr/product_template.py
+++ b/indoteknik_custom/models/solr/product_template.py
@@ -59,9 +59,9 @@ class ProductTemplate(models.Model):
solr_model = self.env['apache.solr']
for template in self:
+ voucher = None
if template.x_manufacture:
voucher = self.get_voucher_pastihemat(template.x_manufacture.id)
- # Lakukan sesuatu dengan voucher
variant_names = ', '.join([x.display_name or '' for x in template.product_variant_ids])
variant_codes = ', '.join([x.default_code or '' for x in template.product_variant_ids])