2
0

Merge PR #1636 into 16.0

Signed-off-by yajo
This commit is contained in:
OCA-git-bot 2023-04-24 09:10:47 +00:00
commit af45fb53d7

View File

@ -78,6 +78,7 @@ class AccountMoveRenumberWizard(models.TransientModel):
current_range.sudo().number_next = self.starting_number current_range.sudo().number_next = self.starting_number
self.sequence_id.sudo().number_next = self.starting_number self.sequence_id.sudo().number_next = self.starting_number
# Renumber the moves # Renumber the moves
moves = moves.with_context(skip_invoice_sync=True)
moves.entry_number = False moves.entry_number = False
moves.flush_recordset(["entry_number"]) moves.flush_recordset(["entry_number"])
moves._compute_entry_number() moves._compute_entry_number()