[FIX] website_forum: allow users to save their edited bio
This commit is contained in:
parent
eae72dd1c8
commit
c97d0ccf8f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue