Skip to content

Commit c97d0cc

Browse files
committed
[FIX] website_forum: allow users to save their edited bio
1 parent eae72dd commit c97d0cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

addons/website_forum/models/res_users.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
from openerp.osv import osv, fields
44

5-
65
class Users(osv.Model):
76
_inherit = 'res.users'
87

8+
def __init__(self, pool, cr):
9+
init_res = super(Users, self).__init__(pool, cr)
10+
self.SELF_WRITEABLE_FIELDS = list(set(
11+
self.SELF_WRITEABLE_FIELDS + \
12+
['country_id', 'city', 'website', 'website_description']))
13+
return init_res
14+
915
def _get_user_badge_level(self, cr, uid, ids, name, args, context=None):
1016
"""Return total badge per level of users"""
1117
result = dict.fromkeys(ids, False)

0 commit comments

Comments
 (0)