From 1c403c0e848c407197ca5da11211d41d40d16872 Mon Sep 17 00:00:00 2001 From: FrankC013 Date: Mon, 9 Dec 2024 10:16:21 +0100 Subject: [PATCH] [FIX] connector_oxigesti: correction for export without chunk size --- connector_oxigesti/models/product_pricelist_item/exporter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/connector_oxigesti/models/product_pricelist_item/exporter.py b/connector_oxigesti/models/product_pricelist_item/exporter.py index 904195427..87d6c4359 100644 --- a/connector_oxigesti/models/product_pricelist_item/exporter.py +++ b/connector_oxigesti/models/product_pricelist_item/exporter.py @@ -34,6 +34,8 @@ def run(self, domain=None): partner_ids = self.env["res.partner"].search(domain).ids chunk_size = self.backend_record.chunk_size + if chunk_size <= 0: + chunk_size = len(partner_ids) for index in range(0, len(partner_ids), chunk_size): chunk_ids = partner_ids[index : index + chunk_size] chunk_domain = [("id", "in", chunk_ids)]