bzr revid: fp@tinyerp.com-20100612223530-2btlp6soybycg7nj
This commit is contained in:
Fabien Pinckaers 2010-06-13 00:35:30 +02:00
parent 211d9c1d79
commit 37e218e36a
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@
<page string="Preferences">
<field name="password" password="True" readonly="0"/>
<newline/>
<label string="" colspan="1"
<label string="" colspan="1"/>
<label colspan="3" string="Please note that you will have to logout and relog if you change your password."/>
<field name="context_lang" completion="1" readonly="0"/>
<field name="context_tz" completion="1" readonly="0"/>

View File

@ -780,7 +780,7 @@ class related(function):
relation = obj._name
res = {}.fromkeys(ids, False)
objlst = obj.browse(cr, uid, ids, context=context)
objlst = obj.browse(cr, 1, ids, context=context)
for data in objlst:
if not data:
continue
@ -807,7 +807,7 @@ class related(function):
if self._type=='many2one':
ids = filter(None, res.values())
if ids:
ng = dict(obj.pool.get(self._obj).name_get(cr, uid, ids, context=context))
ng = dict(obj.pool.get(self._obj).name_get(cr, 1, ids, context=context))
for r in res:
if res[r]:
res[r] = (res[r], ng[res[r]])