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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user