From af7c8849a952bffe359ebe4e4a14514af61c0c17 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Thu, 9 Jan 2020 14:31:43 +0100 Subject: [PATCH] [REF] b_shift : code cleaning --- beesdoo_shift/models/attendance_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beesdoo_shift/models/attendance_sheet.py b/beesdoo_shift/models/attendance_sheet.py index 9f3f108..1ec19c8 100644 --- a/beesdoo_shift/models/attendance_sheet.py +++ b/beesdoo_shift/models/attendance_sheet.py @@ -502,7 +502,7 @@ class AttendanceSheet(models.Model): start_time_dt = fields.Datetime.from_string(self.start_time) if self.state == "validated": - raise UserError("The sheet has already been validated.") + raise UserError(_("The sheet has already been validated.")) if start_time_dt > datetime.now(): raise UserError( _("You must wait for the shifts to begin to validate sheet.")