DEV: Probation Tracking
This commit is contained in:
parent
7f8a627a8c
commit
a8570dea30
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue