Skip to content

Commit

Permalink
[T2169] FIX : invoice status after unreconcile
Browse files Browse the repository at this point in the history
  • Loading branch information
robinrolle authored and ecino committed Feb 18, 2025
1 parent b48580b commit 447c044
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thankyou_letters/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ def button_draft(self):

def _compute_amount(self):
"""When invoice is open again, remove it from donation receipt."""
payment_states = self.mapped("payment_state")
# Computes values before treatments
super()._compute_amount()
super()._compute_payment_state()
payment_states = self.mapped("payment_state")
new_payment_states = self.mapped("payment_state")
for i, state in enumerate(payment_states):
invoice = self[i]
Expand Down

0 comments on commit 447c044

Please sign in to comment.