[FIX] account_move_name_sequence: call flush before to post the moves

This commit is contained in:
Fernanda Hernández
2022-11-30 00:03:58 +00:00
parent 0d4b3cc4ca
commit 86814d3ae9

View File

@@ -64,3 +64,7 @@ class AccountMove(models.Model):
if not invoices_other_sequences and invoices_no_gap_sequences:
return False
return super(AccountMove, invoices_other_sequences)._is_end_of_seq_chain()
def _post(self, soft=True):
self.flush()
return super()._post(soft=soft)