From d572586530f6bd97dd4c89acde59c3dde3067101 Mon Sep 17 00:00:00 2001 From: nicolasjamoulle Date: Tue, 12 Mar 2019 10:16:25 +0100 Subject: [PATCH] [ADD] remove super_coop_id --- beesdoo_shift/models/task.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beesdoo_shift/models/task.py b/beesdoo_shift/models/task.py index 91345b4..226f154 100644 --- a/beesdoo_shift/models/task.py +++ b/beesdoo_shift/models/task.py @@ -81,6 +81,9 @@ class Task(models.Model): to_unsubscribe_replace = self.search([('replaced_id', 'in', worker_ids)] + date_domain) to_unsubscribe_replace.write({'worker_id': False, 'is_regular': False, 'replaced_id': False}) + # if self.super_coop_id.id: + # to_unsubscribe_replace.write({'super_coop_id': False}) + @api.multi def write(self, vals): """