From ec1c65812bc1c28dad832609fa80b561a2c749c4 Mon Sep 17 00:00:00 2001 From: Kartik Chavda Date: Wed, 18 May 2022 10:34:41 +0000 Subject: [PATCH] [REM] hr_timesheet: remove unused method from timesheet This commit remove unused method added by commit: https://github.com/odoo/odoo/commit/2f20b9437a80d71a6184ab83b9c1db3dd04f9cb3 task-2826265 Part-of: odoo/odoo#90744 --- addons/hr_timesheet/models/hr_timesheet.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/addons/hr_timesheet/models/hr_timesheet.py b/addons/hr_timesheet/models/hr_timesheet.py index c0cbec9b228..250a3a82565 100644 --- a/addons/hr_timesheet/models/hr_timesheet.py +++ b/addons/hr_timesheet/models/hr_timesheet.py @@ -50,11 +50,6 @@ class AccountAnalyticLine(models.Model): return [('user_id', '=', self.env.user.id)] return [] - def _domain_task_id(self): - if not self.user_has_groups('hr_timesheet.group_hr_timesheet_approver'): - return ['|', ('privacy_visibility', '!=', 'followers'), ('message_partner_ids', 'in', [self.env.user.partner_id.id])] - return [] - task_id = fields.Many2one( 'project.task', 'Task', index='btree_not_null', compute='_compute_task_id', store=True, readonly=False,