19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:53 +01:00
parent dc68f80d3f
commit 7221b9ac46
610 changed files with 135477 additions and 161677 deletions

View file

@ -4,8 +4,8 @@
from odoo import fields, models
class RecurringPlan(models.Model):
_name = "crm.recurring.plan"
class CrmRecurringPlan(models.Model):
_name = 'crm.recurring.plan'
_description = "CRM Recurring revenue plans"
_order = "sequence"
@ -14,6 +14,7 @@ class RecurringPlan(models.Model):
active = fields.Boolean('Active', default=True)
sequence = fields.Integer('Sequence', default=10)
_sql_constraints = [
('check_number_of_months', 'CHECK(number_of_months >= 0)', 'The number of month can\'t be negative.'),
]
_check_number_of_months = models.Constraint(
'CHECK(number_of_months >= 0)',
"The number of month can't be negative.",
)