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 643838031b
commit 2a1a5ba73f
3 changed files with 12 additions and 3 deletions

View File

@ -214,6 +214,5 @@ Known Issues / Roadmap
======================
- Add support to import externally generated keys & certificates (currently only 3SKey signature certificate).
- For Odoo 16.0 the interaction with the OCA payment order and bank statement import modules (e.g. french CFONB) is not yet available.
- Electronic Distributed Signature (EDS) is not supported in the current version of this module.

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):
"""

View File

@ -563,7 +563,6 @@ You can also find this information in the doc folder of this module (file EBICS_
<h2>Known Issues / Roadmap</h2>
<ul class="simple">
<li>Add support to import externally generated keys &amp; certificates (currently only 3SKey signature certificate).</li>
<li>For Odoo 16.0 the interaction with the OCA payment order and bank statement import modules (e.g. french CFONB) is not yet available.</li>
<li>Electronic Distributed Signature (EDS) is not supported in the current version of this module.</li>
</ul>
</div>