mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[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:
committed by
Artem Kostyuk
parent
5aac265aba
commit
cc9f24f7b6
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user