<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 Le Filament (https://le-filament.com)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
    <!-- Tree view -->
    <record id="event_event_ticket_view_tree_from_event" model="ir.ui.view">
        <field name="name">event.event.ticket.view.tree.from.event</field>
        <field name="model">event.event.ticket</field>
        <field name="inherit_id" ref="event.event_event_ticket_view_tree_from_event" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='seats_max']" position="after">
                <field name="max_ticket_per_order" optional="show" />
            </xpath>
        </field>
    </record>

    <!-- Form view -->
    <record id="event_event_ticket_view_form_from_event" model="ir.ui.view">
        <field name="name">event.event.ticket.view.form.from.event</field>
        <field name="model">event.event.ticket</field>
        <field name="inherit_id" ref="event.event_event_ticket_view_form_from_event" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='seats_max']" position="after">
                <field name="max_ticket_per_order" />
            </xpath>
        </field>
    </record>
</odoo>
