<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
     Copyright 2016 Vicent Cubells <vicent.cubells@tecnativa.com>
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="view_event_registration_form" model="ir.ui.view">
        <field name="model">event.registration</field>
        <field name="inherit_id" ref="event.view_event_registration_form" />
        <field name="arch" type="xml">
            <field name="name" position="after">
                <field name="attendee_partner_id" />
            </field>
        </field>
    </record>
    <record id="view_event_registration_tree" model="ir.ui.view">
        <field name="model">event.registration</field>
        <field name="inherit_id" ref="event.view_event_registration_tree" />
        <field name="arch" type="xml">
            <field name="name" position="after">
                <field name="attendee_partner_id" />
            </field>
        </field>
    </record>
    <record id="view_registration_search" model="ir.ui.view">
        <field name="name">Search attended registrations</field>
        <field name="model">event.registration</field>
        <field name="inherit_id" ref="event.view_registration_search" />
        <field name="arch" type="xml">
            <filter name="expected" position="after">
                <filter
                    name="done"
                    domain="[('state', '=', 'done')]"
                    string="Attended"
                />
            </filter>
        </field>
    </record>
</odoo>
