Merge lp:~openerp-dev/openobject-addons/6.1-opw-576776-nep into lp:openobject-addons/6.1

Proposed by Nehal Panchal (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6957
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-576776-nep
Merge into: lp:openobject-addons/6.1
Diff against target: 26 lines (+3/-1)
2 files modified
document/ (+1/-0)
document_webdav/ (+2/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-576776-nep
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Olivier Dony (Old Profile) Pending
Review via email:

Description of the change


The webdav connection doesn’t read the default language of the user who is logged in. It always shows the names in English. That's wrong.

For example:
1. Set language as Dutch for the user.
2. Connect with webdav by giving path dav://hostname:port/webdav with Dutch user and open the database folder.
3. Go to Documents/Products which shows the product names in English which should be in Dutch(user's language).

This fixes the issue.


To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :


This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Naresh Soni

Unmerged revisions

6957. By Nehal Panchal (OpenERP)

[FIX] Display webdav folder names in user's language instead of only English

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'document/'
2--- document/ 2011-12-19 16:54:40 +0000
3+++ document/ 2012-08-21 12:42:19 +0000
4@@ -823,6 +823,7 @@
5 uid = self.context.uid
6 ctx = self.context.context.copy()
7 ctx.update(self.dctx)
8+ ctx.update(self.context.extra_ctx)
9 where = []
10 if self.domain:
11 app = safe_eval(self.domain, ctx)
13=== modified file 'document_webdav/'
14--- document_webdav/ 2011-12-19 16:54:40 +0000
15+++ document_webdav/ 2012-08-21 12:42:19 +0000
16@@ -51,9 +51,10 @@
17 # that might be not worth preparing.
18 nctx.extra_ctx['webdav_path'] = '/'+config.get_misc('webdav','vdir','webdav')
19 usr_obj = self.pool.get('res.users')
20- res =, uid, uid, ['login'])
21+ res =, uid, uid, ['login','context_lang'])
22 if res:
23 nctx.extra_ctx['username'] = res['login']
24+ nctx.extra_ctx['lang'] = res['context_lang']
25 # TODO group
26 return