[IMP] project_assignees: add assignee_ids field to task portal view

This commit is contained in:
Stéphan Sainléger
2022-08-25 17:19:38 +02:00
parent 87bdd51043
commit 892a526df8
3 changed files with 30 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="portal_my_task_assignees" name="My Task: Assignees" inherit_id="project.portal_my_task" priority="40">
<xpath expr="//div[hasclass('flex-grow-0')]/../../.." position="inside">
<div class="col-12 col-md-6 pb-2" t-if="task.assignee_ids">
<strong>Other assignees</strong>
<div class="row">
<t t-foreach="task.assignee_ids" t-as="assignee">
<div class="col flex-grow-0 pr-3">
<img t-if="assignee.image" class="rounded-circle mt-1 o_portal_contact_img" t-att-src="image_data_uri(assignee.image)" alt="Contact" />
<img t-else="" class="rounded-circle mt-1 o_portal_contact_img" src="/web/static/src/img/user_menu_avatar.png" alt="Contact" />
</div>
<div class="col pl-md-0">
<strong>
<span t-field="assignee.name" />
</strong>
<span t-field="assignee.email" />
<span t-field="assignee.phone" />
</div>
</t>
</div>
</div>
</xpath>
</template>
</odoo>