diff --git a/wms_connector/models/synchronize_exportable_mixin.py b/wms_connector/models/synchronize_exportable_mixin.py index 70e865cf5b..ae374f0bc4 100644 --- a/wms_connector/models/synchronize_exportable_mixin.py +++ b/wms_connector/models/synchronize_exportable_mixin.py @@ -54,7 +54,7 @@ def _get_export_data(self): def synchronize_export(self): res = self.env["attachment.queue"] for records, data in self._get_export_data(): - vals = self._format_to_exportfile(data) + vals = records._format_to_exportfile(records._get_export_name, data) attachment = self.env["attachment.queue"].create(vals) records.track_export(attachment) res += attachment