[IMP] hr_attendance_work_entry: Modified kiosk mode views and attendance views to allow for various punch types.

This commit is contained in:
Brett Spaulding
2020-09-18 17:26:50 -04:00
parent 713a076dd4
commit eda51873b8
13 changed files with 454 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ from odoo import fields, models
class HrWorkEntryType(models.Model):
_inherit = 'hr.work.entry.type'
_order = 'sequence, id'
allow_attendance = fields.Boolean(string='Allow in Attendance')
attendance_icon = fields.Char(string='Attendance Icon', default='fa-sign-in')
@@ -10,4 +11,5 @@ class HrWorkEntryType(models.Model):
# ('checked_out', "Checked out"), # reserved for detecting new punch in
('checked_in', "Checked in"),
('break', 'Break'),
('lunch', 'Lunch'),
], string='Attendance State', default='checked_in')