<?xml version="1.0" encoding="utf-8" ?>
<!--
    Copyright 2017-19 Tecnativa - David Vidal
    Copyright 2021 Moka Tourisme (https://www.mokatourisme.fr)
    License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<odoo>
    <record id="view_event_inherit_registration_editor_form" model="ir.ui.view">
        <field name="model">registration.editor</field>
        <field name="inherit_id" ref="event_sale.view_event_registration_editor_form" />
        <field name="arch" type="xml">
            <xpath
                expr="//field[@name='event_registration_ids']//field[@name='event_id']"
                position="after"
            >
                <field
                    name="session_id"
                    domain="[('event_id', '=', event_id)]"
                    readonly="1"
                    force_save="1"
                />
            </xpath>
        </field>
    </record>
</odoo>
