From 8191bb2f92d9f87268538d6df0e5276e6506a7a9 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Thu, 24 Nov 2022 22:04:58 +0100 Subject: [PATCH] [MIG] account_ebics_payment_order: Migration to 15.0 --- account_ebics/wizards/ebics_xfer.py | 17 ++++++++++++++++- account_ebics/wizards/ebics_xfer.xml | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py index 6552b85..a32b2f6 100644 --- a/account_ebics/wizards/ebics_xfer.py +++ b/account_ebics/wizards/ebics_xfer.py @@ -338,7 +338,22 @@ class EbicsXfer(models.TransientModel): OrderID = False try: order_type = self.order_type - if order_type == "FUL": + if order_type == "BTU": + btf = BusinessTransactionFormat( + ef_format.btf_service, + ef_format.btf_message, + scope=ef_format.btf_scope or None, + option=ef_format.btf_option or None, + container=ef_format.btf_container or None, + version=ef_format.btf_version or None, + variant=ef_format.btf_variant or None, + format=ef_format.btf_format or None, + ) + kwargs = {} + if self.test_mode: + kwargs["TEST"] = "TRUE" + client.BTU(btf, upload_data, **kwargs) + elif order_type == "FUL": kwargs = {} bank = self.ebics_config_id.journal_ids[0].bank_id cc = bank.country.code diff --git a/account_ebics/wizards/ebics_xfer.xml b/account_ebics/wizards/ebics_xfer.xml index 3dfd4d9..0d28980 100644 --- a/account_ebics/wizards/ebics_xfer.xml +++ b/account_ebics/wizards/ebics_xfer.xml @@ -74,7 +74,7 @@