[FIX] gamification: set record name for goal titles

closes odoo/odoo#30628

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Yenthe666
2019-04-08 11:52:51 +00:00
committed by Martin Trigaux
parent 9dec7ba7e9
commit 6f682e9ac7
+1
View File
@@ -146,6 +146,7 @@ class Goal(models.Model):
_name = 'gamification.goal'
_description = 'Gamification Goal'
_rec_name = 'definition_id'
_order = 'start_date desc, end_date desc, definition_id, id'
definition_id = fields.Many2one('gamification.goal.definition', string="Goal Definition", required=True, ondelete="cascade")