From 25088fa43ba473be27e97c4e0e3997b2ce11c039 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Thu, 6 Feb 2020 14:24:23 +0100 Subject: [PATCH] [CHG] b_shift : generated shifts name computation --- beesdoo_shift/models/planning.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/beesdoo_shift/models/planning.py b/beesdoo_shift/models/planning.py index f8c31a1..593bd64 100644 --- a/beesdoo_shift/models/planning.py +++ b/beesdoo_shift/models/planning.py @@ -168,7 +168,14 @@ class TaskTemplate(models.Model): status.temporary_exempt_start_date <= rec.start_date.date() and status.temporary_exempt_end_date >= rec.end_date.date(): worker_id = False tasks |= tasks.create({ - 'name' : "%s %s (%s - %s) [%s]" % (rec.name, rec.day_nb_id.name, float_to_time(rec.start_time), float_to_time(rec.end_time), i), + 'name' : "[%s] %s %s (%s - %s) [%s]" % ( + rec.start_date.date(), + rec.planning_id.name, + rec.day_nb_id.name, + float_to_time(rec.start_time), + float_to_time(rec.end_time), + i, + ), 'task_template_id' : rec.id, 'task_type_id' : rec.task_type_id.id, 'super_coop_id': rec.super_coop_id.id,