summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-10-10 16:11:18 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-10-10 16:11:18 +0700
commita09833c98b4dfeee1aff7bd8d5f899b2908e2146 (patch)
tree2c9a10497282b6edeb1ac7ed73536f1b6ca3851f
parent9c7a238ffc015e4d63e51921c1a56f736db74fa0 (diff)
Update product_template.py
-rwxr-xr-xindoteknik_custom/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index a51f0600..60bcf1b1 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -63,7 +63,7 @@ class ProductTemplate(models.Model):
products = self.env['product.template'].search([
('type', '=', 'product'),
('active', '=', True),
- ('last_calculate_rating', '!=', False),
+ ('last_calculate_rating', '=', False),
], limit=5000)
for product in products:
print("Calculate Rating Product ", product)