From e87dc34e1cc0583c61a29adbb0c12dba294159df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=BAria=20Sancho?= Date: Wed, 8 Feb 2023 17:06:43 +0100 Subject: [PATCH] [14.0][FIX] account_financial_tools: fix read --- account_netting/wizards/account_move_make_netting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account_netting/wizards/account_move_make_netting.py b/account_netting/wizards/account_move_make_netting.py index 839c731a5..6554ca27f 100644 --- a/account_netting/wizards/account_move_make_netting.py +++ b/account_netting/wizards/account_move_make_netting.py @@ -125,7 +125,9 @@ class AccountMoveMakeNetting(models.TransientModel): ) to_reconcile.reconcile() # Open created move - action = self.env.ref("account.action_move_journal_line").read()[0] + action = self.env["ir.actions.act_window"]._for_xml_id( + "account.action_move_journal_line" + ) action["view_mode"] = "form" del action["views"] del action["view_id"]