Skip to content

Commit

Permalink
wms_connector: allows to specify record_per_file to -1 which puts all…
Browse files Browse the repository at this point in the history
… the record in one file
  • Loading branch information
FranzPoize committed May 14, 2024
1 parent 3cc52c9 commit d6dcd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wms_connector/models/synchronize_exportable_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _get_export_data(self, raise_error=False):
raise
rec.wms_export_error = str(e)
continue
if len(records) >= self.record_per_file:
if self.record_per_file > 0 and len(records) >= self.record_per_file:
yield records, data
data = []
records = self.browse()
Expand Down

0 comments on commit d6dcd70

Please sign in to comment.