[NEW] hr_attendance_work_entry: for Odoo 13

This commit is contained in:
Jared Kipe
2020-09-18 11:28:39 -07:00
committed by Leo Pinedo
parent 557e490427
commit a092e9ea09
9 changed files with 180 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
from odoo import fields, models
class HrWorkEntryType(models.Model):
_inherit = 'hr.work.entry.type'
allow_attendance = fields.Boolean(string='Allow in Attendance')
attendance_icon = fields.Char(string='Attendance Icon', default='fa-sign-in')
attendance_state = fields.Selection([
# ('checked_out', "Checked out"), # reserved for detecting new punch in
('checked_in', "Checked in"),
('break', 'Break'),
], string='Attendance State', default='checked_in')