<kanban highlight_color="color" 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" groups_draggable="0" group_edit="0" default_order="priority desc, sequence, state, date_deadline asc, id desc">
                <field name="state"/>
                <field name="allow_milestones"/>
                <field name="has_late_and_unreached_milestone"/>
                <progressbar field="state" colors="{&quot;1_done&quot;: &quot;success-done&quot;, &quot;1_canceled&quot;: &quot;danger&quot;, &quot;03_approved&quot;: &quot;success&quot;, &quot;02_changes_requested&quot;: &quot;warning&quot;, &quot;04_waiting_normal&quot;: &quot;info&quot;, &quot;01_in_progress&quot;: &quot;200&quot;}"/>
                <templates>
                <t t-name="menu" t-if="!selection_mode">
                    <div invisible="1" role="separator" class="dropdown-divider"/>
                    <field invisible="1" name="color" widget="kanban_color_picker"/>
                </t>
                <t t-name="card">
                    <div t-att-class="{'opacity-50': ['1_done', '1_canceled'].includes(record.state.raw_value)}">
                        <field name="name" class="fw-bolder fs-5" widget="name_with_subtask_count"/>
                        <field name="project_id" invisible="context.get('default_project_id', False)" required="1" class="text-muted"/>
                        <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 and !record.state.raw_value.startsWith('1_') ? 'text-danger' : ''}}">
                            <field name="milestone_id" class="text-muted"/>
                        </span>
                        <field t-if="record.partner_id.value" name="partner_id" class="text-truncate text-muted d-block"/>
                    </div>
                    <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" context="{'project_id': project_id}"/>
                    <field t-if="record.date_deadline.raw_value" name="date_deadline" invisible="state in ['1_done', '1_canceled']" widget="remaining_days"/>
                    <field t-if="record.displayed_image_id.value" groups="base.group_user" name="displayed_image_id" widget="attachment_image"/>
                    <footer t-if="!selection_mode">
                        <field name="priority" class="me-2" widget="priority"/>
                        <div class="d-flex ms-auto text-truncate">
                            <span t-if="record.portal_user_names.raw_value.length &gt; 0" class="pe-2 text-truncate" 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-if="user_count &gt; 1"><t t-out="user_count"/> assignees</t>
                                <field t-else="" name="portal_user_names"/>
                            </span>
                            <field name="state" widget="project_task_state_selection" options="{'is_toggle_mode': false}"/>
                        </div>
                    </footer>
                </t>
                </templates>
            </kanban>