Skip to content

Commit

Permalink
[FIX] connector_oxigesti: correction for export without chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC013 committed Dec 9, 2024
1 parent bfb32ef commit 1c403c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connector_oxigesti/models/product_pricelist_item/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 1c403c0

Please sign in to comment.