[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
This commit is contained in:
committed by
Laurent Stukkens (LTU)
parent
22cd824772
commit
741663f9de
@@ -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):
|
||||
|
||||
@@ -62,11 +62,7 @@
|
||||
</t>
|
||||
|
||||
<t t-name="sale_timesheet.ProfitabilitySection" owl="1">
|
||||
<<<<<<< HEAD
|
||||
<t t-if="state.data.user.is_project_user && state.data.profitability_items.data.length > 0">
|
||||
=======
|
||||
<t t-if="state.data.user.is_project_manager && state.data.analytic_account_id && state.data.profitability_items.data.length > 0">
|
||||
>>>>>>> [IMP] sale_timesheet: remove overview and improve updates
|
||||
<t t-if="state.data.user.is_project_user && state.data.profitability_items.data.length > 0 && state.data.analytic_account_id">
|
||||
<t t-set="profitability_items" t-value="state.data.profitability_items"/>
|
||||
<div name="profitability" class="o_rightpanel_section">
|
||||
<div class="o_rightpanel_header">
|
||||
|
||||
Reference in New Issue
Block a user