mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[imp] account_move_batch_validate: if creating the jobs takes long, at least commit while marking moves to be validated. that way users will see the flag somewhat sooner.
This commit is contained in:
@@ -116,6 +116,8 @@ class account_move(orm.Model):
|
||||
move_ids[start:start + BLOCK_SIZE],
|
||||
{'to_post': True},
|
||||
context=context)
|
||||
# users like to see the flag sooner rather than later
|
||||
cr.commit()
|
||||
self._delay_post_marked(cr, uid, eta=eta, context=context)
|
||||
|
||||
def unmark_for_posting(self, cr, uid, move_ids, context=None):
|
||||
|
||||
Reference in New Issue
Block a user