<?xml version="1.0"?>
<kanban class="o_kanban_small_column o_kanban_project_tasks" default_group_by="stage_id" on_create="quick_create" quick_create_view="project.project_sharing_quick_create_task_form" archivable="0" import="0">
                <field name="color"/>
                <field name="priority"/>
                <field name="stage_id" options="{&quot;group_by_tooltip&quot;: {&quot;description&quot;: &quot;Description&quot;}}"/>
                <field name="portal_user_names"/>
                <field name="partner_id"/>
                <field name="sequence"/>
                <field name="is_closed" force_save="0"/>
                <field name="partner_is_company"/>
                <field name="displayed_image_id"/>
                <field name="active"/>
                <field name="allow_subtasks"/>
                <field name="child_text"/>
                <field name="legend_blocked" invisible="1" force_save="0"/>
                <field name="legend_normal" invisible="1" force_save="0"/>
                <field name="legend_done" invisible="1" force_save="0"/>
                <field name="allow_milestones"/>
                <field name="has_late_and_unreached_milestone"/>
                <progressbar field="kanban_state" colors="{&quot;done&quot;: &quot;success&quot;, &quot;blocked&quot;: &quot;danger&quot;, &quot;normal&quot;: &quot;200&quot;}"/>
                <templates>
                <t t-name="kanban-box">
                    <div t-attf-class="{{!selection_mode ? 'oe_kanban_color_' + kanban_getcolor(record.color.raw_value) : ''}} oe_kanban_card oe_kanban_global_click">
                        <div class="oe_kanban_content">
                            <div class="o_kanban_record_top">
                                <div class="o_kanban_record_headings">
                                    <strong class="o_kanban_record_title">
                                        <s t-if="!record.active.raw_value"><field name="name" widget="name_with_subtask_count"/></s>
                                        <t t-else=""><field name="name" widget="name_with_subtask_count"/></t>
                                    </strong>
                                    <span invisible="context.get('default_project_id', False)"><br/><field name="project_id" required="1"/></span>
                                    <span t-if="record.allow_milestones.raw_value and record.milestone_id.raw_value" t-attf-class="{{record.has_late_and_unreached_milestone.raw_value ? 'text-danger' : ''}}">
                                        <br/>
                                        <field name="milestone_id"/>
                                    </span>
                                    <br/>
                                    <t t-if="record.partner_id.value">
                                        <span t-if="!record.partner_is_company.raw_value" t-attf-title="#{record.commercial_partner_id.value}">
                                            <field name="commercial_partner_id" class="text-truncate d-block"/>
                                        </span>
                                        <span t-else="" t-attf-title="#{record.partner_id.value}">
                                            <field name="partner_id" class="text-truncate d-block"/>
                                        </span>
                                    </t>
                                    <t t-else="record.email_from.raw_value"><span><field name="email_from"/></span></t>
                                </div>
                                <div class="o_dropdown_kanban dropdown" t-if="!selection_mode">
                                    <a role="button" class="dropdown-toggle o-no-caret btn" data-bs-toggle="dropdown" data-bs-display="static" href="#" aria-label="Dropdown menu" title="Dropdown menu">
                                        <span class="fa fa-ellipsis-v"/>
                                    </a>
                                    <div class="dropdown-menu" role="menu">
                                        <a t-if="widget.editable" role="menuitem" type="edit" class="dropdown-item">Edit</a>
                                        <div invisible="1" role="separator" class="dropdown-divider"/>
                                        <ul invisible="1" class="oe_kanban_colorpicker" data-field="color"/>
                                    </div>
                                </div>
                            </div>
                            <div class="o_kanban_record_body">
                                <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" context="{'project_id': project_id}"/>
                                <div t-if="record.date_deadline.raw_value" name="date_deadline" attrs="{'invisible': [('is_closed', '=', True)]}">
                                    <field name="date_deadline" widget="remaining_days"/>
                                </div>
                                <div t-if="record.displayed_image_id.value" groups="base.group_user">
                                    <field name="displayed_image_id" widget="attachment_image"/>
                                </div>
                            </div>
                            <div class="o_kanban_record_bottom" t-if="!selection_mode">
                                <div class="oe_kanban_bottom_left">
                                    <field name="priority" widget="priority"/>
                                </div>
                                <div class="oe_kanban_bottom_right" t-if="!selection_mode">
                                    <span t-if="record.portal_user_names.raw_value.length &gt; 0" class="pe-2" t-att-title="record.portal_user_names.raw_value">
                                        <t t-set="user_count" t-value="record.portal_user_names.raw_value.split(',').length"/>
                                        <t t-out="user_count"/>
                                        <t t-if="user_count &gt; 1"> assignees</t>
                                        <t t-else=""> assignee</t>
                                    </span>
                                    <field name="kanban_state" widget="state_selection"/>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"/>
                    </div>
                </t>
                </templates>
            </kanban>
        