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

This commit is contained in:
Fernanda Hernández
2022-11-29 23:47:24 +00:00
parent 7089d20cb7
commit d091f3a411

View File

@@ -55,3 +55,7 @@ class AccountMove(models.Model):
# We must by-pass this constraint of sequence.mixin
def _constrains_date_sequence(self):
return True
def _post(self, soft=True):
self.flush()
return super()._post(soft=soft)