[FIX] document_webdav: language field on res.user is just lang in 7.0, fix untested fp merge
bzr revid: odo@openerp.com-20121112142620-zy2d1y8o4oj3zbud
This commit is contained in:
@@ -51,10 +51,10 @@ class document_davdir(osv.osv):
|
||||
# that might be not worth preparing.
|
||||
nctx.extra_ctx['webdav_path'] = '/'+config.get_misc('webdav','vdir','webdav')
|
||||
usr_obj = self.pool.get('res.users')
|
||||
res = usr_obj.read(cr, uid, uid, ['login','context_lang'])
|
||||
res = usr_obj.read(cr, uid, uid, ['login','lang'])
|
||||
if res:
|
||||
nctx.extra_ctx['username'] = res['login']
|
||||
nctx.extra_ctx['lang'] = res['context_lang']
|
||||
nctx.extra_ctx['lang'] = res['lang']
|
||||
# TODO group
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user