From a540c65731c8772465f3bd0e798e7e470004b67c Mon Sep 17 00:00:00 2001 From: Cedric Collins Date: Mon, 11 Jul 2022 18:27:56 -0500 Subject: [PATCH 1/2] [FIX] rma: set access token in rma links Fixes access error in chatter H10618 --- rma/views/portal_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma/views/portal_templates.xml b/rma/views/portal_templates.xml index a27a456a..3ab631b1 100644 --- a/rma/views/portal_templates.xml +++ b/rma/views/portal_templates.xml @@ -66,7 +66,7 @@ - + From 9f4cb38ade39a530d07cb6bd349b2f609653822f Mon Sep 17 00:00:00 2001 From: Cedric Collins Date: Thu, 14 Jul 2022 10:49:47 -0500 Subject: [PATCH 2/2] [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