From e543a9fac5de2170e25d540076c4471e7c866b05 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Thu, 13 Feb 2020 09:54:27 +0100 Subject: [PATCH 1/2] [FIX] b_shift : cron_send_weekly_emails --- beesdoo_shift/data/cron.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beesdoo_shift/data/cron.xml b/beesdoo_shift/data/cron.xml index e3f90e443..333d46db2 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 From 59a23a681f306fbc58668c29d2a1a309e0754ae1 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Thu, 13 Feb 2020 10:01:28 +0100 Subject: [PATCH 2/2] [FIX] b_shift : abstract model SQL requests were made on abstract table. --- beesdoo_shift/models/attendance_sheet.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/beesdoo_shift/models/attendance_sheet.py b/beesdoo_shift/models/attendance_sheet.py index 3211848a4..7b140159e 100644 --- a/beesdoo_shift/models/attendance_sheet.py +++ b/beesdoo_shift/models/attendance_sheet.py @@ -8,7 +8,16 @@ 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"