fix 'savepoint does not exist' stack trace

This commit is contained in:
Luc De Meyer 2023-07-30 22:01:31 +02:00
parent 1181b611df
commit 56e6f6963e

View File

@ -126,8 +126,7 @@ class EbicsBatchLog(models.Model):
import_dict["errors"].append(err_msg + tb) import_dict["errors"].append(err_msg + tb)
log.file_ids = [(6, 0, ebics_file_ids)] log.file_ids = [(6, 0, ebics_file_ids)]
try: try:
with self.env.cr.savepoint(): log._ebics_process(import_dict)
log._ebics_process(import_dict)
except UserError as e: except UserError as e:
import_dict["errors"].append(err_msg + " ".join(e.args)) import_dict["errors"].append(err_msg + " ".join(e.args))
except Exception: except Exception: