Merge pull request #213 from acsone/8.0-imp-commit-account-move-batch-validate-ape

[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:
Stéphane Bidoul (ACSONE)
2015-06-01 17:07:54 +02:00

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.