[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
committed by Moises Lopez - https://www.vauxoo.com/
parent 27e59d504e
commit 5095705fad

View File

@@ -83,3 +83,7 @@ class AccountMove(models.Model):
if not self.quick_edit_mode:
self.name = "/"
self._compute_name_by_sequence()
def _post(self, soft=True):
self.flush()
return super()._post(soft=soft)