[MIG] account_payment_order_notification: Migration to 14.0

TT40457
This commit is contained in:
Víctor Martínez
2022-11-14 08:29:43 +01:00
committed by Yadier A. De Quesada
parent 143f2a7e2b
commit d0f4e1b67c
11 changed files with 36 additions and 29 deletions

View File

@@ -30,7 +30,7 @@ class AccountPaymentOrder(models.Model):
"account_payment_order_notification",
"account_payment_order_notification_action",
)
action = self.env.ref(xml_id).read()[0]
action = self.env["ir.actions.act_window"]._for_xml_id(xml_id)
action["domain"] = [("order_id", "=", self.id)]
return action