From 0eddb58d9e21e27618f1ce9a2ad6a46ff2f8ac3e Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 1 Mar 2022 22:24:12 +0100 Subject: [PATCH] [8.0]fix ebics 2.4 OrderId management --- account_ebics/__openerp__.py | 4 ++-- account_ebics/wizard/ebics_xfer.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/account_ebics/__openerp__.py b/account_ebics/__openerp__.py index 734d8c5..cdc906d 100644 --- a/account_ebics/__openerp__.py +++ b/account_ebics/__openerp__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- -# Copyright 2009-2020 Noviat. +# Copyright 2009-2022 Noviat. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'EBICS banking protocol', - 'version': '8.0.1.6.1', + 'version': '8.0.1.6.2', 'license': 'AGPL-3', 'author': 'Noviat', 'category': 'Accounting & Finance', diff --git a/account_ebics/wizard/ebics_xfer.py b/account_ebics/wizard/ebics_xfer.py index a159f7d..2bd9edb 100644 --- a/account_ebics/wizard/ebics_xfer.py +++ b/account_ebics/wizard/ebics_xfer.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2009-2018 Noviat. +# Copyright 2009-2022 Noviat. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). """ @@ -327,7 +327,8 @@ class EbicsXfer(models.TransientModel): tb = ''.join(format_exception(*exc_info())) self.note += '\n%s' % tb - if self.ebics_config_id.ebics_version == 'H003' and OrderID: + if self.ebics_config_id.ebics_version == 'H003': + OrderID = self.ebics_config_id._get_order_number() self.ebics_config_id._update_order_number(OrderID) return ebics_file