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/nodes.py (+1/-0)
document_webdav/document_webdav.py (+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: mp+120552@code.launchpad.net

Description of the change

Hello,

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.

Thanks

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 :

Hello,

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 https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576776-port-mma/+merge/132532 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.

Thanks,
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
=== modified file 'document/nodes.py'
--- document/nodes.py 2011-12-19 16:54:40 +0000
+++ document/nodes.py 2012-08-21 12:42:19 +0000
@@ -823,6 +823,7 @@
823 uid = self.context.uid823 uid = self.context.uid
824 ctx = self.context.context.copy()824 ctx = self.context.context.copy()
825 ctx.update(self.dctx)825 ctx.update(self.dctx)
826 ctx.update(self.context.extra_ctx)
826 where = []827 where = []
827 if self.domain:828 if self.domain:
828 app = safe_eval(self.domain, ctx)829 app = safe_eval(self.domain, ctx)
829830
=== modified file 'document_webdav/document_webdav.py'
--- document_webdav/document_webdav.py 2011-12-19 16:54:40 +0000
+++ document_webdav/document_webdav.py 2012-08-21 12:42:19 +0000
@@ -51,9 +51,10 @@
51 # that might be not worth preparing.51 # that might be not worth preparing.
52 nctx.extra_ctx['webdav_path'] = '/'+config.get_misc('webdav','vdir','webdav')52 nctx.extra_ctx['webdav_path'] = '/'+config.get_misc('webdav','vdir','webdav')
53 usr_obj = self.pool.get('res.users')53 usr_obj = self.pool.get('res.users')
54 res = usr_obj.read(cr, uid, uid, ['login'])54 res = usr_obj.read(cr, uid, uid, ['login','context_lang'])
55 if res:55 if res:
56 nctx.extra_ctx['username'] = res['login']56 nctx.extra_ctx['username'] = res['login']
57 nctx.extra_ctx['lang'] = res['context_lang']
57 # TODO group58 # TODO group
58 return59 return
5960