From 741663f9de31a81665b9982ccf80e379ff18bd64 Mon Sep 17 00:00:00 2001 From: Thibault Libioulle Date: Thu, 2 Sep 2021 15:58:23 +0200 Subject: [PATCH] [FIX] project: fix project update default Prior to this commit, the case where the update status was not set is not handled in the STATUS COLOR mapping. This commit associate a lighten dark color to the unset update status. See PR : #68899 See task-2393768 PR : #70527 task-2458135 --- addons/project/models/project_update.py | 1 + .../static/src/xml/sale_project_templates.xml | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/addons/project/models/project_update.py b/addons/project/models/project_update.py index ebcc9ff62ac..e09d300f290 100644 --- a/addons/project/models/project_update.py +++ b/addons/project/models/project_update.py @@ -13,6 +13,7 @@ STATUS_COLOR = { 'at_risk': 2, # orange 'off_track': 23, # red / danger 'on_hold': 4, # light blue + False: 0, # default grey -- for studio } class ProjectUpdate(models.Model): diff --git a/addons/sale_timesheet/static/src/xml/sale_project_templates.xml b/addons/sale_timesheet/static/src/xml/sale_project_templates.xml index 5cc7f846b14..61942aaa97a 100644 --- a/addons/sale_timesheet/static/src/xml/sale_project_templates.xml +++ b/addons/sale_timesheet/static/src/xml/sale_project_templates.xml @@ -62,11 +62,7 @@ -<<<<<<< HEAD - -======= - ->>>>>>> [IMP] sale_timesheet: remove overview and improve updates +