<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="res_config_settings_view_form_membership_monthly_invoicing" model="ir.ui.view">
            <field name="name">res.config.settings.view.form.inherit.membership.monthly.invoicing</field>
            <field name="model">res.config.settings</field>
            <field name="priority" eval="91"/>
            <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_monthly_invoicing"
                         string="Members" name="membership">
                        <block title="Monthly Membership Invoicing"
                               id="membership_monthly_invoicing_block">
                            <setting
                                string="Automatic monthly invoicing"
                                help="A scheduled action creates a draft membership invoice each month for every active member, copying the fee from their last membership line.">
                                <field name="membership_monthly_invoicing_enabled"/>
                            </setting>
                        </block>
                    </app>
                </xpath>
            </field>
        </record>
    </data>
</odoo>
