summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-09-15 10:32:39 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-09-15 10:32:39 +0700
commit0ace4356bdbe27c3acd75c33d5259ef950eecb24 (patch)
tree7424c60a500525b2c647887d1e2e4569ebda50bb
parenta21fc77edfba8d2d645f4ddf224fb097aea61d0a (diff)
limit func update_internal_reference
-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 f67ab474..4c11dcef 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -153,7 +153,7 @@ class ProductTemplate(models.Model):
('type', '=', 'product'),
('active', '=', True),
('product_variant_ids', '!=', False),
- ])
+ ], limit=limit)
for template_with_variant in templates_with_variant:
for product in template_with_variant.product_variant_ids:
if product.default_code: