<?xml version="1.0"?>
<kanban class="o_mrp_workorder_kanban" create="0" sample="1">
                <field name="workcenter_id" invisible="True"/>
                <field name="product_uom_id" invisible="True" force_save="True"/>
                <field name="operation_id" invisible="True"/>
                <field name="working_user_ids"/>
                <field name="working_state"/>
                <field name="date_start"/>
                <field name="production_date"/>
                <templates>
                    <t t-name="card">
                        <div class="d-flex o_kanban_record_top">
                            <div class="o_kanban_workorder_title h4">
                                <field name="production_id"/> - <field name="name"/>
                            </div>
                            <div class="o_kanban_workorder_date h5">
                                <field name="date_start"/>
                                <field t-if="!record.date_start.raw_value" name="production_date"/>
                            </div>
                            <div class="h2 ms-2">
                                <span t-attf-class="badge #{['progress'].indexOf(record.state.raw_value) &gt; -1 ? 'text-bg-warning' : ['ready', 'waiting', 'pending'].indexOf(record.state.raw_value) &gt; -1 ? 'text-bg-primary' : ['done'].indexOf(record.state.raw_value) &gt; -1 ? 'text-bg-success' : 'text-bg-danger'}">
                                    <field name="state"/>
                                </span>
                            </div>
                        </div>
                        <footer>
                            <h5>
                                <field name="product_id"/>, <field name="qty_production" class="ms-1"/> <field name="product_uom_id" groups="uom.group_uom"/><t t-if="record.finished_lot_id.value">, </t> <field t-if="record.finished_lot_id.value" name="finished_lot_id" class="ms-1"/>
                            </h5>
                            <div class="o_kanban_workorder_status d-flex ms-auto" t-if="record.state.raw_value == 'progress'">
                                <span t-if="record.working_state.raw_value != 'blocked' and record.working_user_ids.raw_value.length &gt; 0"><i class="fa fa-play fs-6" role="img" aria-label="Run" title="Run"/></span>
                                <span t-if="record.working_state.raw_value != 'blocked' and record.working_user_ids.raw_value.length == 0 and record.last_working_user_id.raw_value"><i class="fa fa-pause" role="img" aria-label="Pause" title="Pause"/></span>
                                <span t-if="record.working_state.raw_value == 'blocked' and (record.working_user_ids.raw_value.length == 0 or record.last_working_user_id.raw_value)"><i class="fa fa-stop" role="img" aria-label="Stop" title="Stop"/></span>
                                <t name="user_avatar" t-if="record.last_working_user_id.raw_value">
                                    <field name="last_working_user_id" widget="image" options="{'preview_image': 'avatar_128'}" class="ms-1" alt="Avatar"/>
                                </t>
                            </div>
                        </footer>
                    </t>
                </templates>
            </kanban>
        