Skip to Content
Menu
This question has been flagged
1 Reply
5954 Views

Hi All,


I have this code which I try to take project module as an example, to print the avator of my product_owner in kanban.

<div t-attf-class="oe_kanban_content">
<h3 class="text-center"><strong><field name="name"/></strong></h3>
<h4 class="text"><strong class="text">Product Owner</strong></h4>
<div class="oe_kanban_project_avatars">
<t t-foreach="[record.product_owner_id.raw_value]" t-as="member">
<img t-att-src="kanban_image('res.users', 'image_small', member)" t-att-data-member_id="member"/>
</t>
</div>



But my tooltip won't appear like, the project.

Any idea?

Avatar
Discard
Author Best Answer

To display a single avatar image.

<img t-att-src="kanban_image('res.users', 'image_small', record.product_owner_id.raw_value)" t-att-title="record.product_owner_id.value" width="24" height="24" class="oe_kanban_avatar"/>
Avatar
Discard
Related Posts Replies Views Activity
1
Dec 20
5141
0
Nov 24
67
0
Aug 22
1258
3
Jan 24
12129
0
Apr 22
65