mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_move_name_sequence: call flush before to post the moves
This commit is contained in:
committed by
Moises Lopez - https://www.vauxoo.com/
parent
27e59d504e
commit
5095705fad
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user