[12.0]fix ebics 2.4 OrderId management

This commit is contained in:
Luc De Meyer 2022-03-01 22:24:12 +01:00
parent 83a454c50f
commit fd2e167764
2 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,9 @@
# Copyright 2009-2020 Noviat.
# Copyright 2009-2022 Noviat.
# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl).
{
'name': 'EBICS banking protocol',
'version': '12.0.1.1.0',
'version': '12.0.1.1.1',
'license': 'LGPL-3',
'author': 'Noviat',
'category': 'Accounting & Finance',

View File

@ -1,4 +1,4 @@
# Copyright 2009-2020 Noviat.
# Copyright 2009-2022 Noviat.
# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl).
"""
@ -328,8 +328,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