Skip to content

Commit

Permalink
[FIX] account_move_name_sequence: call flush before to post the moves
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandahf committed Nov 30, 2022
1 parent 0d4b3cc commit 86814d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions account_move_name_sequence/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ def _is_end_of_seq_chain(self):
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)

0 comments on commit 86814d3

Please sign in to comment.