DEV: Probation Tracking

This commit is contained in:
Bhagya-K 2026-06-22 15:04:56 +05:30
parent 7f8a627a8c
commit a8570dea30
1 changed files with 0 additions and 20 deletions

View File

@ -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: