Merge branch 'fix/15.0/H10618_rma__chatter_access_error' into '15.0'

WIP: fix/15.0/H10618_rma__chatter_access_error into 15.0

See merge request hibou-io/hibou-odoo/suite!1439
This commit is contained in:
Cedric Collins
2022-07-14 15:54:27 +00:00

View File

@@ -161,7 +161,7 @@ class CustomerPortal(CustomerPortal):
# should be submitted to indicate that a selection has occurred. # should be submitted to indicate that a selection has occurred.
rma = rma_template._portal_try_create(request.env.user, res_id, **kw) rma = rma_template._portal_try_create(request.env.user, res_id, **kw)
if rma: if rma:
return request.redirect('/my/rma/' + str(rma.id)) return request.redirect(rma.get_portal_url())
except ValidationError as e: except ValidationError as e:
error = e.name error = e.name