<?xml version="1.0"?>
<kanban js_class="account_return_check_kanban" create="0" edit="0">
                    <field name="state"/>
                    <field name="return_state"/>
                    <field name="result"/>
                    <field name="action"/>
                    <field name="bypassed"/>
                    <field name="return_id"/> <!-- mandatory -->

                    <t t-name="card" class="o_return_check_kanban_card mt-2">
                        <t t-set="result" t-value="record.result.raw_value"/>
                        <t t-set="bypassed" t-value="record.bypassed.raw_value"/>
                        <t t-set="message" t-value="record.message.raw_value"/>
                        <t t-set="records_count" t-value="record.records_count.raw_value"/>
                        <t t-set="records_name" t-value="record.records_name.raw_value"/>
                        <t t-set="return_name" t-value="record.return_name.raw_value"/>

                        <div class="w-100" t-att-class="result == 'success' or bypassed ? 'return-check-card-success' : ''">
                            <div class="container w-100 h-100 p-2 border-1 align-items-center align-self-center">
                                <div class="row h-100 align-items-center">
                                    <div class="col-12 col-md-8">
                                        <div>
                                            <i invisible="result != 'success'" class="fa fa-check text-success align-self-center" title="success"/>
                                            <i invisible="result == 'success'" class="fa fa-times text-danger align-self-center" title="failure"/>
                                            <field class="oe_inline px-2" name="name" readonly="1" nolabel="1"/>
                                            <span invisible="result != 'failure'" class="text-muted small">
                                                <field name="records_count" invisible="not records_count or records_count &gt;= 21"/>
                                                <span invisible="not records_count or records_count &lt; 21">20+</span>
                                                <span invisible="not records_count"> </span>
                                                <field name="records_name"/>
                                            </span>
                                        </div>
                                        <div invisible="not message" class="row text-muted">
                                            <field name="message" class="mt-2"/>
                                        </div>
                                        <div invisible="context.get('hide_return_name', False)" class="mt-2 text-muted">
                                            <i><field name="return_name"/></i>
                                        </div>
                                    </div>
                                    <div class="col-12 col-md-4 h-full d-flex justify-content-end  align-items-center my-auto">
                                        <field name="approver_ids" widget="kanban.many2many_avatar_user_approver"/>
                                        <button invisible="result == 'success' or bypassed" type="object" class="btn btn-secondary ms-1" name="action_bypass_or_undo" string="Validate"/>
                                        <button invisible="result == 'success' or not bypassed" type="object" class="btn btn-secondary ms-1" name="action_bypass_or_undo" string="Reset"/>
                                        <button type="object" name="action_open_form_view" title="Open form view" icon="fa-pencil-square-o ms-1" class="btn-link fa-lg p-0 text-dark"/>
                                        <field name="activity_ids" widget="kanban_activity" class="ms-1"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </t>
                </kanban>
            