diff --git a/beesdoo_shift/data/cron.xml b/beesdoo_shift/data/cron.xml index e3f90e4..333d46d 100644 --- a/beesdoo_shift/data/cron.xml +++ b/beesdoo_shift/data/cron.xml @@ -67,7 +67,7 @@ -1 beesdoo.shift.shift _cron_send_weekly_emails diff --git a/beesdoo_shift/models/attendance_sheet.py b/beesdoo_shift/models/attendance_sheet.py index 3211848..7b14015 100644 --- a/beesdoo_shift/models/attendance_sheet.py +++ b/beesdoo_shift/models/attendance_sheet.py @@ -8,7 +8,16 @@ from openerp import _, api, exceptions, fields, models from openerp.exceptions import UserError, ValidationError -class AttendanceSheetShift(models.AbstractModel): +class AttendanceSheetShift(models.Model): + """ + Partial copy of Task class to use in AttendanceSheet, + actual Task is updated at validation. + + Should be Abstract and not used alone (common code for + AttendanceSheetShiftAdded and AttendanceSheetShiftExpected), + but create() method from res.partner raise error + when class is Abstract. + """ _name = "beesdoo.shift.sheet.shift" _description = "Copy of an actual shift into an attendance sheet" _order = "task_type_id, worker_name"