[IMP] *: update kanban views
Use the new Many2OneAvatarUser field widget in some kanban views, which allows to open a DM chat window with the corresponding user by clicking on the avatar. Part of task 2195254
This commit is contained in:
@@ -522,10 +522,7 @@
|
||||
<field name="activity_ids" widget="kanban_activity"/>
|
||||
</div>
|
||||
<div class="oe_kanban_bottom_right">
|
||||
<img t-if="record.user_id.raw_value"
|
||||
t-att-title="record.user_id.value"
|
||||
t-att-src="kanban_image('res.users', 'image_128', record.user_id.raw_value)"
|
||||
t-att-alt="record.user_id.value" class="oe_kanban_avatar"/>
|
||||
<field name="user_id" widget="many2one_avatar_user"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
<field name="create_date" widget="date"/>
|
||||
</time>
|
||||
<div class="oe_kanban_bottom_right">
|
||||
<img t-att-src="kanban_image('res.users', 'image_128', record.create_uid.raw_value)" t-att-data-member_id="record.create_uid.raw_value" t-att-alt="record.create_uid.raw_value" class="oe_kanban_avatar"/>
|
||||
<field name="create_uid" widget="many2one_avatar_user"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<field name="priority" widget="priority"/>
|
||||
</span>
|
||||
<div class="oe_kanban_bottom_right">
|
||||
<img t-att-src="kanban_image('res.users', 'image_128', record.create_uid.raw_value)" t-att-data-member_id="record.create_uid.raw_value" t-att-alt="record.create_uid.raw_value" class="oe_kanban_avatar"/>
|
||||
<field name="create_uid" widget="many2one_avatar_user"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="o_dropdown_kanban dropdown" tabindex="-1">
|
||||
|
||||
@@ -692,10 +692,7 @@
|
||||
</div>
|
||||
<div class="oe_kanban_bottom_right" t-if="!selection_mode">
|
||||
<field name="kanban_state" widget="state_selection" groups="base.group_user" invisible="context.get('fsm_mode', False)"/>
|
||||
<img t-if="record.user_id.raw_value"
|
||||
t-att-src="kanban_image('res.users', 'image_128', record.user_id.raw_value)"
|
||||
t-att-title="record.user_id.value"
|
||||
t-att-alt="record.user_id.value" class="oe_kanban_avatar"/>
|
||||
<field name="user_id" widget="many2one_avatar_user"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -167,10 +167,7 @@
|
||||
<div class="o_kanban_record_bottom">
|
||||
<div class="oe_kanban_bottom_left"/>
|
||||
<div class="oe_kanban_bottom_right">
|
||||
<img t-if="record.user_id.raw_value"
|
||||
t-att-title="record.user_id.value"
|
||||
t-att-src="kanban_image('res.users', 'image_128', record.user_id.raw_value)"
|
||||
t-att-alt="record.user_id.value" class="oe_kanban_avatar"/>
|
||||
<field name="user_id" widget="many2one_avatar_user"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user