create monthly recurring membership lines

This commit is contained in:
GitHub Copilot 2026-06-02 14:22:13 +02:00
parent a0ba3426c8
commit 8798f321b3
7 changed files with 222 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo import models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
membership_monthly_invoicing_enabled = fields.Boolean(
string="Automatic monthly membership invoicing",
config_parameter="membership_monthly_invoicing.enabled",
default=True,
help="When enabled, a scheduled action creates a draft membership "
"invoice each month for every active member, copying the fee from "
"their last membership line.",
)