# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResConfigSettings(models.TransientModel):
    _inherit = "res.config.settings"

    membership_expiry_reminder_days = fields.Integer(
        string="Days before expiry to send reminder",
        default=30,
        config_parameter="membership_expiry_reminder.days_before_expiry",
        help="Number of days before the membership end date to send the renewal "
        "reminder email. Set to 0 to disable automatic reminders.",
    )
