Skip to content

Commit

Permalink
[14.0][FIX] account_sequence_option
Browse files Browse the repository at this point in the history
Wrong condition was causing the lost of the invoice number on invoices that had been already validated and number assigned previously
  • Loading branch information
almumu authored and docker-odoo committed Jan 16, 2025
1 parent e2dce02 commit c63802e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_sequence_option/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _compute_name(self):
if (
rec.create_date
and rec.state in ("draft", "cancel")
and rec.name not in (False, "/")
and rec.name in (False, "/")
and not rec.sequence_option
):
rec.name = "/"
Expand Down

0 comments on commit c63802e

Please sign in to comment.