Nehal Panchal (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-576776-nep into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576776-nep/+merge/120552

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.

This fixes the issue.

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576776-nep/+merge/120552
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-576776-nep.
=== 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 @@
         uid = self.context.uid
         ctx = self.context.context.copy()
         ctx.update(self.dctx)
+        ctx.update(self.context.extra_ctx)
         where = []
         if self.domain:
             app = safe_eval(self.domain, ctx)

=== 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 @@
         # 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'])
+        res = usr_obj.read(cr, uid, uid, ['login','context_lang'])
         if res:
             nctx.extra_ctx['username'] = res['login']
+            nctx.extra_ctx['lang'] = res['context_lang']
         # TODO group
         return
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to