From 5c03820f87ca96fc4bf31b695372ec9af8d1ac1a Mon Sep 17 00:00:00 2001 From: MaxLarue Date: Fri, 23 Aug 2019 13:26:24 +0000 Subject: [PATCH] [IMP] industry_fsm: change date displaying on kanban cards This commit changes the display of dates on kanban cards. It is now conditional. Depending on the date versus actual date we conditionally set the color. Depending if the record are grouped by date, we format the date as a date or as a time. If the task is an fsm task we show the planned date begin otherwise we display the deadline. From which App | project | fsm | ------------------------------------------------------------------------------- task.is_fsm | y | n | y | n | ------------------------------------------------------------------------------- task.fsm_state == 'done' | y | n | y | n | y | n | y | n | ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- display deadline | n | n | y | y | n | n | y | y | ------------------------------------------------------------------------------- should it be colored? | n | y | y | y | n | y | y | y | ------------------------------------------------------------------------------- display city ? | n | n | n | n | y | y | y | y | extra case: in fsm, if the records are grouped by date, we display time only in red, if the task is late, taking the time into account. Task-2047389 Closes #5388 --- addons/project/views/project_views.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index a5794fe5ebe..c17e563f8d2 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -566,7 +566,7 @@
- • + @@ -603,10 +603,14 @@ + + + + oe_kanban_text_red text-warning font-weight-bold - - + +