Browse Source

[FIX] make 100% sure that revert info are erased after beeing applied

pull/26/head
Thibault Francois 7 years ago
parent
commit
c61a946906
  1. 1
      beesdoo_shift/models/task.py

1
beesdoo_shift/models/task.py

@ -93,6 +93,7 @@ class Task(models.Model):
try: try:
data = json.loads(self.revert_info) data = json.loads(self.revert_info)
self.env['cooperative.status'].browse(data['status_id'])._change_counter(data['data']) self.env['cooperative.status'].browse(data['status_id'])._change_counter(data['data'])
self.revert_info = False
except: except:
pass pass

Loading…
Cancel
Save