diff options
Diffstat (limited to 'addons/survey/models/challenge.py')
| -rw-r--r-- | addons/survey/models/challenge.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/survey/models/challenge.py b/addons/survey/models/challenge.py new file mode 100644 index 00000000..23b54c16 --- /dev/null +++ b/addons/survey/models/challenge.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields + + +class Challenge(models.Model): + _inherit = 'gamification.challenge' + + challenge_category = fields.Selection(selection_add=[ + ('certification', 'Certifications') + ], ondelete={'certification': 'set default'}) |
