[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
parent 956992b1d5
commit b06d77c635

View File

@@ -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):