[FIX] helpdesk_portal_ticket_priority_form: fix the portal ticket list column diplay of priority

the previous code was not working when list is grouped by stage or
category.
The new code set an XPATH based on a fixed tag.
This commit is contained in:
Stéphan Sainléger
2026-06-25 10:57:24 +02:00
parent a2b2256a17
commit 9ed3774820

View File

@@ -34,10 +34,10 @@
<!-- Tickets portal list -->
<template id="portal_ticket_list_priority" name="Ticket Portal List Template : Priority"
inherit_id="helpdesk_mgmt.portal_ticket_list">
<xpath expr="//thead/tr/th[3]" position="after">
<th t-if="groupby == 'none'">Priority</th>
<xpath expr="//thead/tr/th[@name='th_create_date']" position="before">
<th>Priority</th>
</xpath>
<xpath expr="//tbody/t/tr/td[3]" position="after">
<xpath expr="//span[@t-field='ticket.create_date']/.." position="before">
<td>
<t
t-call="helpdesk_portal_ticket_priority_form.portal_my_tickets_priority_widget_template" />