create monthly recurring membership lines
This commit is contained in:
parent
a0ba3426c8
commit
8798f321b3
7 changed files with 222 additions and 0 deletions
17
membership_monthly_invoicing/models/res_config_settings.py
Normal file
17
membership_monthly_invoicing/models/res_config_settings.py
Normal 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.",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue