KERNEL: fix typo

bzr revid: ced-a14633591e0bcc8dc54d6f58173e0955a92aeeb7
This commit is contained in:
ced 2007-04-23 13:22:27 +00:00
parent 6085c0d63d
commit d2d454808f
2 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ class many2one(_column):
try:
names[id] = dict(obj.name_get(cr, user, [id], context))[id]
except except_orm:
names[id] = "===Access error==="
names[id] = "== Access denied =="
for r in res.keys():
if res[r] and res[r] in names:
res[r] = (res[r], names[res[r]])

View File

@ -179,7 +179,7 @@ class browse_record(object):
if compids:
self._cr.execute('SELECT id FROM '+obj._table+' where id = %d AND (company_id in ('+','.join(map(str,compids))+') or company_id is null)', (data[n],))
if not self._cr.fetchall():
raise except_orm('BrowseError', 'Object %s (id:%d) is linked to the object %s (id:%d) that is not in your company' %(self._table._description, self._id, obj._description, data[n]))
raise except_orm('BrowseError', 'Object %s (id:%d) is linked to the object %s (id:%d) which is not in your company' %(self._table._description, self._id, obj._description, data[n]))
data[n] = browse_record(self._cr, self._uid, data[n], obj, self._cache, context=self._context, list_class=self._list_class)
else:
data[n] = browse_null()