Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6642 Vizualizări

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?

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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"/>
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
dec. 20
5910
1
ian. 25
1662
0
aug. 22
2547
3
ian. 24
13474
0
apr. 22
65