Merge PR #471 into 12.0

Signed-off-by sbejaoui
This commit is contained in:
OCA-git-bot
2020-03-17 20:06:31 +00:00
6 changed files with 88 additions and 16 deletions

View File

@@ -43,6 +43,22 @@ class ProductTemplate(models.Model):
default='monthly',
string='Termination Notice type',
)
auto_renew_interval = fields.Integer(
default=1,
string='Renew Every',
help="Renew every (Days/Week/Month/Year)",
)
auto_renew_rule_type = fields.Selection(
[
('daily', 'Day(s)'),
('weekly', 'Week(s)'),
('monthly', 'Month(s)'),
('yearly', 'Year(s)'),
],
default='yearly',
string='Renewal type',
help="Specify Interval for automatic renewal.",
)
@api.multi
def write(self, vals):