[IMP] Commit transaction to avoid to lose all the jobs have been created in case of crash of the current job

This commit is contained in:
Adrien Peiffer (ACSONE)
2015-05-18 17:35:19 +02:00
committed by Artem Kostyuk
parent 5aac265aba
commit cc9f24f7b6

View File

@@ -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.