Skip to content

Commit

Permalink
Merge PR #183 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 21, 2024
2 parents 28c95b5 + 4ab4035 commit 4f7fa83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions membership_extension/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def button_cancel(self):
lines.write({"date_cancel": False})
return res

def post(self):
def action_post(self):
"""Handle validated refunds for cancelling membership lines"""
res = super().post()
res = super().action_post()
self.filtered(lambda m: (m.move_type == "out_invoice")).mapped(
"invoice_line_ids.membership_lines"
).write({"state": "invoiced"})
Expand Down

0 comments on commit 4f7fa83

Please sign in to comment.