From 0729277179ba41f44c031bc6d815ca7447b0a12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Didderen?= Date: Wed, 29 Nov 2023 17:05:23 +0100 Subject: [PATCH] account_ebics - add _payment_order_postprocess for account_payment_order --- account_ebics/wizards/ebics_xfer.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py index de50344..744c0d4 100644 --- a/account_ebics/wizards/ebics_xfer.py +++ b/account_ebics/wizards/ebics_xfer.py @@ -431,8 +431,16 @@ class EbicsXfer(models.TransientModel): OrderID = self.ebics_config_id._get_order_number() self.ebics_config_id.sudo()._update_order_number(OrderID) + ebics_file and self._payment_order_postprocess(ebics_file) return ebics_file + def _payment_order_postprocess(self, ebics_file): + order = self.env[self.env.context["active_model"]].browse( + self.env.context.get("active_id") + ) + if order._name == "account.payment.order": + order.generated2uploaded() + def _setup_client(self): self.ebics_config_id._check_ebics_keys() passphrase = self._get_passphrase()