summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-10-26 16:53:24 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-10-26 16:53:24 +0700
commit4bf707b3d4db40296e108714be863571dccbf3fc (patch)
tree2ddc150edd478a4a53ef74c563ff3aa269442c45
parent5b8509a6ff49db845e2ce625506d8e4837a62681 (diff)
update limit compute virtual qty
-rwxr-xr-xindoteknik_custom/models/stock_vendor.py2
1 files changed, 1 insertions, 1 deletions
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)