[MIG] account_ebics: Migration to 17.0

This commit is contained in:
Luc De Meyer
2024-01-26 22:36:02 +01:00
parent e22fb104ea
commit d2af2cfe8e
11 changed files with 81 additions and 151 deletions

View File

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