Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6632 Vistas

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 20
5909
1
ene 25
1655
0
ago 22
2540
3
ene 24
13469
0
abr 22
65