[FIX] website_forum: allow users to save their edited bio

This commit is contained in:
Olivier Dony 2014-05-20 10:24:01 +02:00
parent eae72dd1c8
commit c97d0ccf8f
1 changed files with 7 additions and 1 deletions

View File

@ -2,10 +2,16 @@
from openerp.osv import osv, fields
class Users(osv.Model):
_inherit = 'res.users'
def __init__(self, pool, cr):
init_res = super(Users, self).__init__(pool, cr)
self.SELF_WRITEABLE_FIELDS = list(set(
self.SELF_WRITEABLE_FIELDS + \
['country_id', 'city', 'website', 'website_description']))
return init_res
def _get_user_badge_level(self, cr, uid, ids, name, args, context=None):
"""Return total badge per level of users"""
result = dict.fromkeys(ids, False)