[12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to sale order line

This commit is contained in:
sbejaoui
2020-02-17 18:08:22 +01:00
committed by Denis Roussel
parent 4b539f6e89
commit ad7434ad13
6 changed files with 88 additions and 16 deletions

View File

@@ -46,8 +46,8 @@ class ContractLine(models.Model):
)
rec.recurring_interval = 1
rec.is_auto_renew = rec.product_id.is_auto_renew
rec.auto_renew_interval = rec.product_id.default_qty
rec.auto_renew_rule_type = rec._get_auto_renew_rule_type()
rec.auto_renew_interval = rec.product_id.auto_renew_interval
rec.auto_renew_rule_type = rec.product_id.auto_renew_rule_type
rec.termination_notice_interval = (
rec.product_id.termination_notice_interval
)