From cc9f24f7b650b6192cdea69bd497bbb6c7df88c0 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Mon, 18 May 2015 17:35:19 +0200 Subject: [PATCH] [IMP] Commit transaction to avoid to lose all the jobs have been created in case of crash of the current job --- account_move_batch_validate/account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_move_batch_validate/account.py b/account_move_batch_validate/account.py index e84c63ce4..b100a2ae7 100644 --- a/account_move_batch_validate/account.py +++ b/account_move_batch_validate/account.py @@ -85,6 +85,7 @@ class account_move(orm.Model): eta=eta) values['post_job_uuid'] = job_uuid self.write(cr, uid, [move_id], values) + cr.commit() def _cancel_jobs(self, cr, uid, context=None): """Find moves where the mark has been removed and cancel the jobs.