<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="res_config_settings_view_form_membership_expiry" model="ir.ui.view">
            <field name="name">res.config.settings.view.form.inherit.membership.expiry.reminder</field>
            <field name="model">res.config.settings</field>
            <field name="priority" eval="90"/>
            <field name="inherit_id" ref="base.res_config_settings_view_form"/>
            <field name="arch" type="xml">
                <xpath expr="//form" position="inside">
                    <app data-string="Members" id="membership_expiry_reminder"
                         string="Members" name="membership">
                        <block title="Membership Renewal Reminders"
                               id="membership_expiry_reminder_block">
                            <setting
                                string="Expiry reminder"
                                help="An email is sent automatically to active members before their membership expires. Set to 0 to disable.">
                                <div class="text-muted content-group mt16">
                                    <span>Send reminder </span>
                                    <field name="membership_expiry_reminder_days"
                                           class="text-center"
                                           style="width: 10%; min-width: 4rem;"/>
                                    <span> days before expiry</span>
                                </div>
                            </setting>
                        </block>
                    </app>
                </xpath>
            </field>
        </record>
    </data>
</odoo>
