Merge pull request #15 from Noviat/16.0

Syncing from upstream Noviat/account_ebics (16.0)
This commit is contained in:
braintec 2023-11-30 01:11:57 +01:00 committed by GitHub
commit 055600987a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()