Skip to content

Commit

Permalink
[IMP] connector_extension: binding included as a parameter in _after_…
Browse files Browse the repository at this point in the history
…export
  • Loading branch information
KNVx authored and eantones committed Jan 24, 2024
1 parent dfd5461 commit 3f1b28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connector_extension/components/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def run(self, relation, always=True, internal_fields=None):
result = _("Nothing to export")
if not result:
result = _("Record exported with ID %s on Backend.") % "external_id"
self._after_export()
self._after_export(binding)
binding[self.binder_for()._sync_date_field] = now_fmt
return result

def _after_export(self):
def _after_export(self, binding):
"""Can do several actions after exporting a record on the backend"""

def _get_sql_lock(self, record):
Expand Down

0 comments on commit 3f1b28c

Please sign in to comment.