From 777cb3164f8748475e702cf5221a443be1ad059f Mon Sep 17 00:00:00 2001 From: Freni Patel Date: Mon, 5 Sep 2022 16:53:34 +0530 Subject: [PATCH] [14.0][FIX] rma --- rma/models/rma.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rma/models/rma.py b/rma/models/rma.py index bc82a99f..50a93bf9 100644 --- a/rma/models/rma.py +++ b/rma/models/rma.py @@ -790,10 +790,8 @@ class Rma(models.Model): self.ensure_one() # Force active_id to avoid issues when coming from smart buttons # in other models - action = ( - self.env.ref("stock.action_picking_tree_all") - .with_context(active_id=self.id) - .read()[0] + action = self.env["ir.actions.actions"]._for_xml_id( + "stock.action_picking_tree_all" ) action.update( res_id=self.reception_move_id.picking_id.id,