<?xml version="1.0"?>
<kanban highlight_color="color" class="o_workcenter_kanban" create="0" can_open="0" sample="0">
                    <field name="workorder_count"/>
                    <field name="working_state"/>
                    <field name="oee_target"/>
                    <templates>
                        <t t-name="menu">
                            <div class="container">
                                <div class="row">
                                    <div class="col-6">
                                        <h5 role="menuitem" class="o_kanban_card_manage_title">
                                            <span>Actions</span>
                                        </h5>
                                        <div role="menuitem" name="plan_order">
                                            <a name="action_work_order" type="object">Plan Orders</a>
                                        </div>
                                    </div>
                                    <div class="col-6">
                                        <h5 role="menuitem" class="o_kanban_card_manage_title">
                                            <span>Reporting</span>
                                        </h5>
                                        <div role="menuitem">
                                            <a name="690" type="action">OEE</a>
                                        </div>
                                        <div role="menuitem">
                                            <a name="692" type="action" context="{'search_default_thisyear':True}">
                                                Performance
                                            </a>
                                        </div>
                                        <div role="menuitem">
                                            <a name="action_work_order" type="object" context="{'search_default_waiting': 1}">Waiting Availability</a>
                                        </div>
                                    </div>
                                </div>

                                <div t-if="widget.editable" class="o_kanban_card_manage_settings row">
                                    <div role="menuitem" aria-haspopup="true" class="col-8">
                                        <field name="color" widget="kanban_color_picker"/>
                                    </div>
                                    <div role="menuitem" class="col-4">
                                        <a type="open">Settings</a>
                                    </div>
                                </div>
                            </div>
                        </t>
                        <t t-name="card">
                            <div class="ms-1">
                                <div style="display: inline-block" name="wc_stages">
                                    <a name="671" type="action" class="o_status float-end" title="No workorder currently in progress. Click to mark work center as blocked." aria-label="No workorder currently in progress. Click to mark work center as blocked." invisible="working_state in ('blocked', 'done')"/>
                                    <a name="unblock" type="object" class=" o_status o_status_red float-end" title="Workcenter blocked, click to unblock." aria-label="Workcenter blocked, click to unblock." invisible="working_state in ('normal', 'done')"/>
                                    <a name="671" type="action" class="o_status o_status_green float-end" title="Work orders in progress. Click to block work center." aria-label="Work orders in progress. Click to block work center." invisible="working_state in ('normal', 'blocked')"/>
                                </div>
                                <field name="name" class="fw-bold fs-4 ms-2"/>
                            </div>
                            <div class="row mt-3 pb-3">
                                <div class="col-6">
                                    <div class="btn-group p-1" name="o_wo">
                                        <button t-if="record.workorder_count.raw_value &gt; 0" class="btn btn-primary" name="action_work_order" type="object" context="{'search_default_ready': 1, 'search_default_progress': 1, 'desktop_list_view': 1, 'search_default_workcenter_id': id}">
                                            <span>WORK ORDERS</span>
                                        </button>
                                        <button t-if="record.workorder_count.raw_value &lt;= 0" class="btn btn-warning" name="action_work_order_alternatives" type="object">
                                            <span>PLAN ORDERS</span>
                                        </button>
                                    </div>
                                </div>
                                <div class="col-6">
                                    <div class="row" t-if="record.workorder_ready_count.raw_value &gt; 0">
                                        <a name="action_work_order" class="col-8" type="object" context="{'search_default_ready': 1, 'desktop_list_view': 1}">
                                            To Launch
                                        </a>
                                        <field name="workorder_ready_count" class="col-4 text-end"/>
                                    </div>
                                    <div class="row" t-if="record.workorder_progress_count.raw_value &gt; 0">
                                        <a name="action_work_order" class="col-8" type="object" context="{'search_default_progress': 1, 'desktop_list_view': 1}">
                                            In Progress
                                        </a>
                                        <field name="workorder_progress_count" class="col-4 text-end"/>
                                    </div>
                                    <div class="row" t-if="record.workorder_late_count.raw_value &gt; 0">
                                        <a name="action_work_order" class="col-8" type="object" context="{'search_default_late': 1, 'desktop_list_view': 1}">
                                            Late
                                        </a>
                                        <field name="workorder_late_count" class="col-4 text-end"/>
                                    </div>
                                    <div class="row" t-if="record.oee.raw_value &gt; 0">
                                        <a name="690" class="col-6" type="action">
                                            OEE
                                        </a>
                                        <div class="col-6">
                                            <span t-att-class="record.oee_target.raw_value and (record.oee.raw_value &lt; record.oee_target.raw_value) and 'text-danger d-flex float-end fw-bolder' or (record.oee.raw_value &gt; record.oee_target.raw_value) and 'text-success d-flex float-end fw-bolder' or 'text-warning d-flex float-end fw-bolder'">
                                                <field name="oee" widget="integer"/>%
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row mt-auto">
                                <field name="kanban_dashboard_graph" graph_type="bar" widget="workcenter_dashboard_graph"/>
                            </div>
                        </t>
                    </templates>
                </kanban>
            