diff --git a/bin/osv/fields.py b/bin/osv/fields.py index 7c522af865d..0e65ea60872 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -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]]) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index dbab4f50b0d..21de948bc9b 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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()