[IMP] project: wrap project name in div in portal task list

This commit wraps the span containing the project name in the portal task list in a div, in order to allow easily adding the "Documents" button next to it.

Enterprise: odoo/enterprise#30838
Upgrade: odoo/upgrade#3749

Task-2944247

Part-of: odoo/odoo#99151
This commit is contained in:
Vincent Larcin
2022-09-09 14:41:05 +02:00
parent 193f220c86
commit 2df1d0d7d5
@@ -128,7 +128,11 @@
<tbody>
<tr t-if="not groupby == 'none'" class="table-light">
<th t-if="groupby == 'project'" t-attf-colspan="{{grouped_tasks_colspan}}">
<span t-field="tasks[0].sudo().project_id.name"/></th>
<!-- This div is necessary for documents_project_sale -->
<div name="project_name" class="d-flex w-100 align-items-center">
<span t-field="tasks[0].sudo().project_id.name"/>
</div>
</th>
<th t-if="groupby == 'milestone'" t-attf-colspan="{{grouped_tasks_colspan}}">
<span t-if="tasks[0].sudo().milestone_id and tasks[0].sudo().allow_milestones"
class="text-truncate"