Skip to content

Commit

Permalink
[IMP] connector_extension: Import batch call run with the new paramet…
Browse files Browse the repository at this point in the history
…er use_data
  • Loading branch information
KNVx authored and eantones committed Jan 9, 2024
1 parent dd75dc6 commit dfd5461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connector_extension/models/binding/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ def export_data(self, backend_record=None):
return self.export_batch(backend_record=backend_record)

@api.model
def import_batch(self, backend_record, domain=None, delayed=True):
def import_batch(self, backend_record, domain=None, delayed=True, use_data=True):
"""Prepare the batch import of records from Backend"""
if not domain:
domain = []
with backend_record.work_on(self._name) as work:
importer = work.component(
usage=delayed and "batch.delayed.importer" or "batch.direct.importer"
)
return importer.run(domain)
return importer.run(domain, use_data=use_data)

@api.model
def export_batch(self, backend_record, domain=None, delayed=True):
Expand Down

0 comments on commit dfd5461

Please sign in to comment.