Community mailing list archives

[odoo] Imbedded documents.

Aksana Ivanova
- 07/23/2015 13:20:26

Hello. Im trying to create embedded link to several documents and my system gives me na “Internal Server Error”, i can see by command line message that its because ogf access rights:



2015-07-23 13:23:16,546 8912 WARNING NOVA_SNGP Access Denied by ACLs for operation: read, uid: 9, model: im_chat.presence

2015-07-23 13:23:16,546 8912 ERROR NOVA_SNGP openerp.http: Exception during JSON request handling.

Traceback (most recent call last):

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 517, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 535, in dispatch

    result = self._call_function(**self.params)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 294, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/exeq/PycharmProjects/odoo/openerp/service/", line 113, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 291, in checked_call

    return self.endpoint(*a, **kw)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 751, in __call__

    return self.method(*args, **kw)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 387, in response_wrap

    response = f(*args, **kw)

  File "/home/exeq/.local/share/Odoo/addons/8.0/bus/", line 192, in poll

    return self._poll(request.db, channels, last, options)

  File "/home/exeq/.local/share/Odoo/addons/8.0/im_chat/", line 387, in _poll

    registry.get('im_chat.presence').update(cr, uid, options.get('im_presence', False), context=context)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/home/exeq/.local/share/Odoo/addons/8.0/im_chat/", line 262, in update

    presence_ids =, uid, [('user_id', '=', uid)], context=context)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 1642, in search

    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 4550, in _search

    self.check_access_rights(cr, access_rights_uid or user, 'read')

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 3412, in check_access_rights

    return self.pool.get('ir.model.access').check(cr, uid, self._name, operation, raise_exception)

  File "/home/exeq/PycharmProjects/odoo/openerp/", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "<string>", line 2, in check

  File "/home/exeq/PycharmProjects/odoo/openerp/tools/", line 71, in lookup

    value = d[key] = self.method(*args, **kwargs)

  File "/home/exeq/PycharmProjects/odoo/openerp/addons/base/ir/", line 790, in check

    raise openerp.exceptions.AccessError(msg % msg_params)

AccessError: ('AccessError', u'Infelizmente, n\xe3o est\xe1 autorizado a aceder a este documento. Apenas utilizadores com o n\xedvel de acesso indicado de seguida est\xe3o autorizados a fazer isso:\n- Human Resources/Employee\n\t- Portal\n\n(Modelo de documento: im_chat.presence)')

2015-07-23 13:23:16,551 8912 INFO NOVA_SNGP werkzeug: - - [23/Jul/2015 13:23:16] "POST /longpolling/poll HTTP/1.1" 200 –


I have tried to make the same request in the and some document are opened without any problems,  the others give me that kind of mistakes:


<img width=988 height=526 id="Imagem_x0020_1" src="cid:image001.jpg@01D0C554.56CA5610">


I check up for the last nightly version – nothing change.

I tried to compare the rules created by the sistem in the runbot and my machine, they are similar.

I cant compare the data stored in the database, because i dont have na access to the runbot database.


If i go to the Configuration, Users and give to the embbed user access right – everything start working good.


How can i avoid to attribude access right to the embbed users manually? Is this something wrong with my machine ou odoo?