[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:
Leonardo Pistone
2014-02-27 17:06:55 +01:00
committed by Artem Kostyuk
parent 36bd23fbd0
commit 0c8c4bf610

View File

@@ -125,6 +125,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):