[IMP] project_assignees: add assignee_ids field to task portal view
This commit is contained in:
25
project_assignees/views/portal_template.xml
Normal file
25
project_assignees/views/portal_template.xml
Normal 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>
|
Reference in New Issue
Block a user