Merge pull request #20 from Noviat/16.0

Syncing from upstream Noviat/account_ebics (16.0)
This commit is contained in:
braintec 2023-12-08 01:09:26 +01:00 committed by GitHub
commit fe29bcfb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -449,10 +449,9 @@ class EbicsXfer(models.TransientModel):
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":
active_model = self.env.context.get("active_model")
if active_model == "account.payment.order":
order = self.env[active_model].browse(self.env.context["active_id"])
order.generated2uploaded()
def _setup_client(self):