From 0ace4356bdbe27c3acd75c33d5259ef950eecb24 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Fri, 15 Sep 2023 10:32:39 +0700 Subject: limit func update_internal_reference --- indoteknik_custom/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3