From 79c115e90f0633bfb7f4d4757fe4f8fd058ca1d1 Mon Sep 17 00:00:00 2001 From: Cedric Collins Date: Thu, 14 Jul 2022 10:49:47 -0500 Subject: [PATCH] [FIX] rma: include access_token in redirect --- rma/controllers/portal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma/controllers/portal.py b/rma/controllers/portal.py index 81b501c6..6d97b80a 100644 --- a/rma/controllers/portal.py +++ b/rma/controllers/portal.py @@ -161,7 +161,7 @@ class CustomerPortal(CustomerPortal): # should be submitted to indicate that a selection has occurred. rma = rma_template._portal_try_create(request.env.user, res_id, **kw) if rma: - return request.redirect('/my/rma/' + str(rma.id)) + return request.redirect(rma.get_portal_url()) except ValidationError as e: error = e.name