Merge branch 'fix/14.0/rma__chatter_access_error' into '14.0'

WIP: fix/14.0/rma__chatter_access_error into 14.0

See merge request hibou-io/hibou-odoo/suite!1441
This commit is contained in:
Cedric Collins
2022-07-14 16:37:56 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -66,7 +66,7 @@
</thead>
<t t-foreach="rmas" t-as="rma">
<tr>
<td class="text-left"><a t-attf-href="/my/rma/#{rma.id}"><span t-field="rma.name"/></a></td>
<td class="text-left"><a t-att-href="rma.get_portal_url()"><span t-field="rma.name"/></a></td>
<td><span t-field="rma.create_date"/></td>
<td class="rma-template">
<span t-if="groupby != 'template'" t-field="rma.template_id"/>