summaryrefslogtreecommitdiff
path: root/addons/gamification/models/badge.py
diff options
context:
space:
mode:
authormreficent <miquel.raich@eficent.com>2020-02-19 12:42:23 +0000
committerMartin Trigaux <mat@odoo.com>2020-02-20 14:58:33 +0000
commit3dffce34bf80c2a8d8682ef986d6daafa5bb0b7f (patch)
tree3ec174f7aa3d672d07635d4f54401ff3d7fa3725 /addons/gamification/models/badge.py
parent62c9227fdaac43329e48cd9446b40eee60dfeb1c (diff)
[IMP] fields: log warning for ignored selection
When a field is related, defining a selection or selection_add will have no effect and the paramater is ignored. Log a warning and fix all fields badly definied Closes odoo/odoo#45716 closes odoo/odoo#45832 Related: odoo/enterprise#8613 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/gamification/models/badge.py')
-rw-r--r--addons/gamification/models/badge.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/gamification/models/badge.py b/addons/gamification/models/badge.py
index 7bfdd074644..c202bde3374 100644
--- a/addons/gamification/models/badge.py
+++ b/addons/gamification/models/badge.py
@@ -24,7 +24,6 @@ class BadgeUser(models.Model):
comment = fields.Text('Comment')
badge_name = fields.Char(related='badge_id.name', string="Badge Name", readonly=False)
level = fields.Selection(
- [('bronze', 'Bronze'), ('silver', 'Silver'), ('gold', 'Gold')],
string='Badge Level', related="badge_id.level", store=True, readonly=True)
def _send_badge(self):