ebics 16.0 : add support for oca camt parser

This commit is contained in:
Luc De Meyer
2023-07-30 21:58:51 +02:00
parent b11def7a00
commit 71db4bec2e
3 changed files with 12 additions and 3 deletions

View File

@@ -412,7 +412,18 @@ class EbicsFile(models.Model):
return self._process_download_result(res)
def _process_camt053_oca(self, res, st_datas):
raise NotImplementedError
for st_data in st_datas:
with self.env.cr.savepoint():
self._create_statement_camt053_oca(res, st_data)
def _create_statement_camt053_oca(self, res, st_data):
wiz = (
self.env["account.statement.import"]
.with_company(st_data["company_id"])
.with_context(active_model="ebics.file")
.create({"statement_filename": self.name})
)
wiz.import_single_file(base64.b64decode(st_data["data"]), res)
def _process_camt053_oe(self, res, st_datas):
"""