<?xml version="1.0"?>
<data><xpath expr="//kanban" position="attributes">
                    <attribute name="default_group_by">date_deadline</attribute>
                    <attribute name="js_class">forecast_kanban</attribute>
                </xpath>
                <xpath expr="//kanban" position="inside">
                    <field name="date_deadline" allow_group_range_value="true"/>
                </xpath>
                <xpath expr="//field[@name='expected_revenue']" position="replace">
                    <field name="prorated_revenue"/>
                </xpath>
                <xpath expr="//progressbar" position="attributes">
                    <attribute name="sum_field">prorated_revenue</attribute>
                </xpath>
                <xpath expr="//t[@t-set='lost_ribbon']" position="after">
                    <t t-set="won_ribbon" t-value="record.active.raw_value and record.probability and record.probability.raw_value == 100"/>
                </xpath>
                <xpath expr="//div[contains(@t-attf-class, 'oe_kanban_card')]" position="attributes">
                    <attribute name="t-attf-class">
                        #{!selection_mode ? kanban_color(record.color.raw_value) : ''}
                        #{lost_ribbon || won_ribbon ? 'oe_kanban_card_ribbon' : ''}
                        oe_kanban_global_click oe_kanban_card d-flex flex-column
                    </attribute>
                </xpath>
                <xpath expr="//div[hasclass('ribbon')]" position="replace">
                    <div class="ribbon ribbon-top-right" attrs="{'invisible': ['&amp;', '|', ('probability', '&gt;', 0), ('active', '=', True),                             '|', ('probability', '&lt;', 100), ('active', '=', False)]}">
                        <span t-if="won_ribbon" class="bg-success">Won</span>
                        <span t-elif="lost_ribbon" class="bg-danger">Lost</span>
                    </div>
                </xpath>
                <xpath expr="//div[hasclass('o_kanban_record_subtitle')]" position="replace">
                    <div class="o_kanban_record_subtitle">
                        <t t-if="record.prorated_revenue.raw_value">
                            <field name="prorated_revenue" widget="monetary" options="{'currency_field': 'company_currency'}"/>
                            <span t-if="record.recurring_revenue and record.recurring_revenue.raw_value" groups="crm.group_use_recurring_revenues"> + </span>
                        </t>
                        <t t-if="record.recurring_revenue and record.recurring_revenue.raw_value">
                            <field name="recurring_revenue" widget="monetary" options="{'currency_field': 'company_currency'}" groups="crm.group_use_recurring_revenues"/>
                            <field name="recurring_plan" groups="crm.group_use_recurring_revenues"/>
                        </t>
                    </div>
                </xpath>
            </data>