[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:
committed by
Martin Trigaux
parent
9dec7ba7e9
commit
6f682e9ac7
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user