Files
odoo_source/addons/website_forum/models/gamification.py
T
Thibault Delavallée 8540a63aa6 [CLEAN] website_forum: gamification: removed code about ongoing challenges
as it is now a feature in trunk.
Also removed unnecessary column redefinition.
Also removed an override in users, will see if necessary.

bzr revid: tde@openerp.com-20140411160003-tffx54f2evjh4r70
2014-04-11 18:00:03 +02:00

20 lines
564 B
Python

# -*- coding: utf-8 -*-
from openerp.osv import osv, fields
class gamification_challenge(osv.Model):
_inherit = 'gamification.challenge'
def _get_categories(self, cr, uid, context=None):
res = super(gamification_challenge, self)._get_categories(cr, uid, context=context)
res.append(('forum', 'Website / Forum'))
return res
class Badge(osv.Model):
_inherit = 'gamification.badge'
_columns = {
'level': fields.selection([('bronze', 'bronze'), ('silver', 'silver'), ('gold', 'gold')], 'Forum Badge Level'),
}