Skip to content

Commit

Permalink
Merge PR #184 into 17.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 4866c46 + 78479bb commit cb3d0b5
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 cb3d0b5

Please sign in to comment.