mirror of
https://github.com/bringout/oca-ocb-vertical-industry.git
synced 2026-04-22 06:51:58 +02:00
19.0 vanilla
This commit is contained in:
parent
4607ccbd2e
commit
825ff6514e
487 changed files with 184979 additions and 195262 deletions
|
|
@ -5,30 +5,27 @@
|
|||
<field name="name">Badge User Kanban View</field>
|
||||
<field name="model">gamification.badge.user</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="oe_background_grey" action="action_open_badge" type="object">
|
||||
<field name="badge_name"/>
|
||||
<field name="badge_id"/>
|
||||
<field name="user_id"/>
|
||||
<field name="comment"/>
|
||||
<kanban action="action_open_badge" type="object">
|
||||
<field name="create_date"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_card oe_kanban_global_click oe_kanban_badge oe_kanban_color_white o_kanban_gamification">
|
||||
<div class="o_kanban_content">
|
||||
<div class="o_kanban_image">
|
||||
<a type="open"><img t-att-src="kanban_image('gamification.badge', 'image_1024', record.badge_id.raw_value)" t-att-title="record.badge_name.value" t-att-alt="record.badge_name.value" /></a>
|
||||
</div>
|
||||
<div class="oe_kanban_details">
|
||||
<h4 class="mt0 mb0">
|
||||
<a class="o_kanban_record_title" type="open"><t t-esc="record.badge_name.raw_value" /></a>
|
||||
</h4>
|
||||
<t t-if="record.comment.raw_value">
|
||||
<p class="o_kanban_record_subtitle"><em><field name="comment"/></em></p>
|
||||
</t>
|
||||
<p>Granted by <a type="open"><field name="create_uid" /></a> the <t t-esc="luxon.DateTime.fromISO(record.create_date.raw_value).toFormat('D')" /></p>
|
||||
<t t-name="card" class="row g-0">
|
||||
<t t-name="card" class="g-0 row ps-2">
|
||||
<div class="col">
|
||||
<field class="fw-bold fs-5" type="open" name="badge_name"/>
|
||||
<div>
|
||||
Granted on <t t-esc="luxon.DateTime.fromISO(record.create_date.raw_value).toFormat('D')"/>
|
||||
<div class="d-flex align-items-center">
|
||||
By
|
||||
<field class="m-0 mx-1 oe_inline" name="create_uid" options="{'no_open': True}" widget="many2one_avatar_user"/>
|
||||
<field name="create_uid" options="{'no_open': True}"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<field name="badge_id" widget="image" options="{'preview_image': 'image_1024'}" t-att-alt="record.badge_name.value" />
|
||||
</div>
|
||||
<field class="mt-1 o_badge_content text-muted" name="comment"/>
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue