Skip to content

Commit

Permalink
[FIX] subscription_oca: recompute date when changing template duration
Browse files Browse the repository at this point in the history
  • Loading branch information
PicchiSeba committed Jan 9, 2024
1 parent 0b2fa4e commit 29257bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subscription_oca/models/sale_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _compute_name(self):
slash = "/" if template_code and code else ""
record.name = "{}{}{}".format(template_code, slash, code)

@api.depends("template_id", "date_start")
@api.depends("template_id.recurring_rule_boundary", "date_start")
def _compute_rule_boundary(self):
for record in self:
if record.template_id.recurring_rule_boundary == "unlimited":
Expand Down

0 comments on commit 29257bf

Please sign in to comment.