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"]