Skip to content

Commit

Permalink
Merge PR #77 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 21, 2019
2 parents ec9c658 + 6a226c3 commit cf88214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion membership_extension/models/res_partner.py
Expand Up @@ -133,7 +133,8 @@ def _compute_membership_date(self):
date_from = line.date_from
if not last_to or last_to < line_date_to:
last_to = line_date_to
if not last_cancel or last_cancel < line.date_cancel:
if not last_cancel or (line.date_cancel
and last_cancel < line.date_cancel):
last_cancel = line.date_cancel
partner.membership_start = date_from
partner.membership_last_start = last_from
Expand Down

0 comments on commit cf88214

Please sign in to comment.