<?xml version="1.0"?>
<form string="Event Mail Scheduler">
                <sheet>
                    <group>
                        <group>
                            <field name="event_id" placeholder="All Events"/>
                            <field name="template_ref" options="{'no_quick_create': True}" context="{'filter_template_on_event': True, 'default_model': 'event.registration'}" widget="EventMailTemplateReferenceField"/>
                            <field name="mail_state"/>
                        </group>
                        <group>
                            <label for="interval_nbr"/>
                            <div class="o_row">
                                <field name="interval_nbr" invisible="interval_unit == 'now'" readonly="interval_unit == 'now'"/>
                                <field name="interval_unit"/>
                            </div>
                            <field name="interval_type"/>
                            <field name="scheduled_date"/>
                        </group>
                    </group>
                    <notebook groups="base.group_no_one">
                        <page string="Registration Mails" name="registration_mails">
                            <field name="mail_registration_ids">
                                <list string="Registration mail" editable="bottom">
                                    <field name="registration_id"/>
                                    <field name="scheduled_date"/>
                                    <field name="mail_sent" string="Sent"/>
                                </list>
                            </field>
                        </page>
                    </notebook>
                </sheet>
            </form>
        