summaryrefslogtreecommitdiff
path: root/addons/gamification/models
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-08-09 12:26:53 +0200
committerThibault Delavallée <tde@openerp.com>2016-08-09 12:28:03 +0200
commit8b6f7e1fe6178ed02a897117b38fdc7ae2e85480 (patch)
treefa770db35217288ec61157c6c33241613fab8bf3 /addons/gamification/models
parentd61e143ed22f542a3ae6bd15f4e6dc8397920d9d (diff)
[FIX] various: fix fields index parameter in new API still called select
Diffstat (limited to 'addons/gamification/models')
-rw-r--r--addons/gamification/models/badge.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/gamification/models/badge.py b/addons/gamification/models/badge.py
index 098cfde66d8..85a08dd3097 100644
--- a/addons/gamification/models/badge.py
+++ b/addons/gamification/models/badge.py
@@ -16,9 +16,9 @@ class BadgeUser(models.Model):
_order = "create_date desc"
_rec_name = "badge_name"
- user_id = fields.Many2one('res.users', string="User", required=True, ondelete="cascade", select=True)
+ user_id = fields.Many2one('res.users', string="User", required=True, ondelete="cascade", index=True)
sender_id = fields.Many2one('res.users', string="Sender", help="The user who has send the badge")
- badge_id = fields.Many2one('gamification.badge', string='Badge', required=True, ondelete="cascade", select=True)
+ badge_id = fields.Many2one('gamification.badge', string='Badge', required=True, ondelete="cascade", index=True)
challenge_id = fields.Many2one('gamification.challenge', string='Challenge originating', help="If this badge was rewarded through a challenge")
comment = fields.Text('Comment')
badge_name = fields.Char(related='badge_id.name', string="Badge Name")