From 4e9e558e16654ba93cf90901a60f65cb6b20211f Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 1 Mar 2022 22:24:12 +0100 Subject: [PATCH] [14.0]fix ebics 2.4 OrderId management --- account_ebics/__manifest__.py | 4 ++-- account_ebics/wizards/ebics_xfer.py | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/account_ebics/__manifest__.py b/account_ebics/__manifest__.py index 35e85ec..b3daf19 100644 --- a/account_ebics/__manifest__.py +++ b/account_ebics/__manifest__.py @@ -1,9 +1,9 @@ -# Copyright 2009-2021 Noviat. +# Copyright 2009-2022 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). { 'name': 'EBICS banking protocol', - 'version': '14.0.1.0.1', + 'version': '14.0.1.0.2', 'license': 'LGPL-3', 'author': 'Noviat', 'website': 'www.noviat.com', diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py index 30c55ed..0ed09f0 100644 --- a/account_ebics/wizards/ebics_xfer.py +++ b/account_ebics/wizards/ebics_xfer.py @@ -1,4 +1,4 @@ -# Copyright 2009-2021 Noviat. +# Copyright 2009-2022 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). """ @@ -343,8 +343,9 @@ 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: - self.ebics_config_id._update_order_number(OrderID) + if self.ebics_config_id.ebics_version == 'H003': + OrderID = self.ebics_config_id._get_order_number() + self.ebics_config_id.sudo()._update_order_number(OrderID) return ebics_file