diff --git a/account_ebics/README.rst b/account_ebics/README.rst index dafe4b1..ec60692 100644 --- a/account_ebics/README.rst +++ b/account_ebics/README.rst @@ -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. diff --git a/account_ebics/models/ebics_file.py b/account_ebics/models/ebics_file.py index 8a86417..57b0909 100644 --- a/account_ebics/models/ebics_file.py +++ b/account_ebics/models/ebics_file.py @@ -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): """ diff --git a/account_ebics/static/description/index.html b/account_ebics/static/description/index.html index 9ed5115..b6b1ad1 100644 --- a/account_ebics/static/description/index.html +++ b/account_ebics/static/description/index.html @@ -563,7 +563,6 @@ You can also find this information in the doc folder of this module (file EBICS_

Known Issues / Roadmap