Skip to content

Commit

Permalink
T1985 : pre-commit clean
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasGajo committed Nov 27, 2024
1 parent c53da27 commit 26791a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions recurring_contract/models/recurring_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,12 @@ def _cancel_invoices(self):
)
if remaining_lines:
# We can move or remove the line
invoice.write({
"invoice_line_ids": [(2, inv_line.id)],
"payment_mode_id": invoice.payment_mode_id.id,
})
invoice.write(
{
"invoice_line_ids": [(2, inv_line.id)],
"payment_mode_id": invoice.payment_mode_id.id,
}
)
else:
# The invoice would be empty if we remove the line
empty_invoices |= invoice
Expand Down

0 comments on commit 26791a1

Please sign in to comment.