From 3f1b28cdf791d7b982a7ed7b082d93e9a97964b5 Mon Sep 17 00:00:00 2001 From: KNVx Date: Wed, 24 Jan 2024 00:44:35 +0100 Subject: [PATCH] [IMP] connector_extension: binding included as a parameter in _after_export --- connector_extension/components/exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connector_extension/components/exporter.py b/connector_extension/components/exporter.py index 8c10770fc..2b20ce08b 100644 --- a/connector_extension/components/exporter.py +++ b/connector_extension/components/exporter.py @@ -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):