From 4bf707b3d4db40296e108714be863571dccbf3fc Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Wed, 26 Oct 2022 16:53:24 +0700 Subject: update limit compute virtual qty --- indoteknik_custom/models/stock_vendor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/stock_vendor.py b/indoteknik_custom/models/stock_vendor.py index 85283654..79c95781 100755 --- a/indoteknik_custom/models/stock_vendor.py +++ b/indoteknik_custom/models/stock_vendor.py @@ -16,7 +16,7 @@ class StockVendor(models.Model): updated_virtual_qty_product_template = self.env['ir.config_parameter'].search([('key', '=', 'updated_virtual_qty_product_template')], limit=1) updated_virtual_qty_product_template_value = int(updated_virtual_qty_product_template.value) - limit = 500 + limit = 10000 query = [('active', '=', True), ('type', '=', 'product')] templates = self.env['product.template'].search(query, limit=limit, offset=updated_virtual_qty_product_template_value) template_count = self.env['product.template'].search_count(query) -- cgit v1.2.3