[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:
Olivier Dony 2012-11-12 15:26:20 +01:00
parent 78d03526d1
commit 94115788e2
1 changed files with 2 additions and 2 deletions

View File

@ -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