Compare commits
6 Commits
506d9e82aa
...
0bc54d0d13
| Author | SHA1 | Date |
|---|---|---|
|
|
0bc54d0d13 | |
|
|
8cd88a5d43 | |
|
|
ebaa1b3c66 | |
|
|
af9fe42e8a | |
|
|
1fa260bb26 | |
|
|
3dbf149bd5 |
|
|
@ -47,13 +47,13 @@ class WebManifest(http.Controller):
|
||||||
'scope': '/odoo',
|
'scope': '/odoo',
|
||||||
'start_url': '/odoo',
|
'start_url': '/odoo',
|
||||||
'display': 'standalone',
|
'display': 'standalone',
|
||||||
'background_color': '#714B67',
|
'background_color': '#017e84',
|
||||||
'theme_color': '#714B67',
|
'theme_color': '#017e84',
|
||||||
'prefer_related_applications': False,
|
'prefer_related_applications': False,
|
||||||
}
|
}
|
||||||
icon_sizes = ['192x192', '512x512']
|
icon_sizes = ['192x192', '512x512']
|
||||||
manifest['icons'] = [{
|
manifest['icons'] = [{
|
||||||
'src': '/web/static/img/odoo-icon-%s.png' % size,
|
'src': '/web/static/img/ftp.png',
|
||||||
'sizes': size,
|
'sizes': size,
|
||||||
'type': 'image/png',
|
'type': 'image/png',
|
||||||
} for size in icon_sizes]
|
} for size in icon_sizes]
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 355 KiB |
|
|
@ -271,18 +271,17 @@ class BiometricDeviceDetails(models.Model):
|
||||||
('check_out', '>=', lower_bound),
|
('check_out', '>=', lower_bound),
|
||||||
('check_out', '<=', upper_bound)
|
('check_out', '<=', upper_bound)
|
||||||
])
|
])
|
||||||
|
|
||||||
if next_in or next_out:
|
|
||||||
continue
|
|
||||||
if get_user_id:
|
if get_user_id:
|
||||||
if self.display_name == 'IN' and not check_in_today:
|
if self.display_name == 'IN' and not check_in_today:
|
||||||
|
if next_in:
|
||||||
|
continue
|
||||||
hr_attendance.create({
|
hr_attendance.create({
|
||||||
'employee_id':get_user_id.id,
|
'employee_id':get_user_id.id,
|
||||||
'check_in': atten_time,
|
'check_in': atten_time,
|
||||||
})
|
})
|
||||||
get_user_id.attendance_state = 'checked_in'
|
get_user_id.attendance_state = 'checked_in'
|
||||||
elif check_in_today and self.display_name != 'IN':
|
elif check_in_today and self.display_name != 'IN':
|
||||||
if fields.Datetime.to_string(check_in_today.check_in) > atten_time:
|
if fields.Datetime.to_string(check_in_today.check_in) > atten_time or next_out:
|
||||||
continue
|
continue
|
||||||
check_in_today.write({
|
check_in_today.write({
|
||||||
'check_out': atten_time,
|
'check_out': atten_time,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue