diff --git a/addons/gamification/goal.py b/addons/gamification/goal.py index b3ebced9ed1..2f64ae16dc5 100644 --- a/addons/gamification/goal.py +++ b/addons/gamification/goal.py @@ -186,16 +186,16 @@ class gamification_goal(osv.Model): 'last_update' : fields.date('Last Update', help="In case of manual goal, reminders are sent if the goal as not been updated for a while (defined in goal plan). Ignored in case of non-manual goal or goal not linked to a plan."), - 'type_description': fields.related('type_id','description', - type='char', string='Type Description'), + 'type_description': fields.related('type_id', 'description', + type='char', string='Type Description', readonly=True), 'type_unit': fields.related('type_id', 'unit', - type='char', string='Type Description'), + type='char', string='Type Description', readonly=True), 'type_condition': fields.related('type_id', 'condition', - type='char', string='Type Condition'), + type='char', string='Type Condition', readonly=True), 'type_suffix': fields.related('type_id', 'full_suffix', - type="char", string="Suffix"), + type="char", string="Suffix", readonly=True), 'type_ponctual': fields.related('type_id', 'ponctual', - type="boolean", string="Ponctual Goal"), + type="boolean", string="Ponctual Goal", readonly=True), } _defaults = { diff --git a/addons/gamification/goal_view.xml b/addons/gamification/goal_view.xml index 20846802726..a4c7b28e5a0 100644 --- a/addons/gamification/goal_view.xml +++ b/addons/gamification/goal_view.xml @@ -69,16 +69,19 @@ - + @@ -158,9 +161,9 @@
-
W +
W N - X + X
@@ -168,7 +171,7 @@
-
+
reached when lower than diff --git a/addons/gamification/static/src/css/goal.css b/addons/gamification/static/src/css/goal.css index d5792d7864b..dc8273e6f69 100644 --- a/addons/gamification/static/src/css/goal.css +++ b/addons/gamification/static/src/css/goal.css @@ -43,6 +43,15 @@ margin-top: -20px; } +.openerp .oe_red { + color: red; +} +.openerp .oe_green { + color: green; +} +.openerp .oe_orange { + color: orange; +} /* Mail Sidebar */