December 2018
Beginner to intermediate
404 pages
10h 14m
English
The t-att- QWeb directive dynamically generates an attribute value by evaluating an expression.
Our Kanban card uses it to dynamically set some attributes on the <img> tag; the title attribute is dynamically rendered using the following:
t-att-title="record.member_id.value"
The .value field returns its value representation as it should be shown on the screen. For many-to-one fields, this is usually the related record's name value. For users, this is the username. As a result, when hovering the mouse pointer over the image, you will see the corresponding username.
When the expression evaluates to a false equivalent value, the attribute is not rendered at all. This is important for special HTML attributes ...
Read now
Unlock full access