[FIX] gamification: prevent traceback in goals history

Closes #1536
This commit is contained in:
cod-odoo
2014-08-04 11:37:26 +02:00
committed by Richard Mathot
parent b5fd6fccb8
commit fca77ad8c5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -852,7 +852,7 @@ class gamification_challenge_line(osv.Model):
return ret
_columns = {
'name': fields.related('definition_id', 'name', string="Name"),
'name': fields.related('definition_id', 'name', string="Name", type="char"),
'challenge_id': fields.many2one('gamification.challenge',
string='Challenge',
required=True,
+1 -1
View File
@@ -23,7 +23,7 @@
<field name="name">Goal List</field>
<field name="model">gamification.goal</field>
<field name="arch" type="xml">
<tree string="Goal List" colors="red:state == 'failed';green:state == 'reached';grey:state == 'canceled'">
<tree string="Goal List" colors="red:state == 'failed';green:state == 'reached';grey:state == 'canceled'" create="false">
<field name="definition_id" invisible="1" />
<field name="user_id" invisible="1" />
<field name="start_date"/>