March 2018
Beginner to intermediate
336 pages
8h 22m
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 element is dynamically rendered using the following:
t-att-title="record.user_id.value"
The field .value 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