diff --git a/addons_extensions/weekly_timesheets/models/weekly_period_timesheets.py b/addons_extensions/weekly_timesheets/models/weekly_period_timesheets.py index e71f9a402..2b9e6ac93 100644 --- a/addons_extensions/weekly_timesheets/models/weekly_period_timesheets.py +++ b/addons_extensions/weekly_timesheets/models/weekly_period_timesheets.py @@ -176,26 +176,6 @@ class WeeklyPeriodTimesheets(models.Model): rec.id, force_send=True ) - employee_user = rec.employee_id.user_id - - if employee_user and employee_user.token: - self.env['firebase.service'].send_notification([ - { - 'token': employee_user.token, - 'title': 'Timesheet Approved', - 'body': ( - f'Your timesheet for ' - f'{rec.week_line_id.date_from} ' - f'to ' - f'{rec.week_line_id.date_to} ' - f'has been approved.' - ), - 'data': { - 'type': 'timesheet_approved', - 'timesheet_id': str(rec.id), - } - } - ]) def action_reset_to_draft(self): for rec in self: