diff options
| author | Olivier Dony <odo@openerp.com> | 2012-11-12 15:26:20 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2012-11-12 15:26:20 +0100 |
| commit | 94115788e2484f6120a0d280c8fbccfec24264ba (patch) | |
| tree | e5918d67f6199b451047afc106957dbe5e783a14 /addons/document_webdav/document_webdav.py | |
| parent | 78d03526d1b1bad8c2bf8856c116fc61457aeb38 (diff) | |
[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
Diffstat (limited to 'addons/document_webdav/document_webdav.py')
| -rw-r--r-- | addons/document_webdav/document_webdav.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/document_webdav/document_webdav.py b/addons/document_webdav/document_webdav.py index ad44a58ac26..cb1315140a3 100644 --- a/addons/document_webdav/document_webdav.py +++ b/addons/document_webdav/document_webdav.py @@ -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 |
