Skip to content

Fails with unexpected keyword argument 'session_id' in latest openerp (trunk, ~8.0) #2

@vaab

Description

@vaab

Here's the full python (server side exception):

Traceback (most recent call last):
  File "/home/vaab/devel/python/0k-oe/openobject-server/openerp/http.py", line 321, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/home/vaab/devel/python/0k-oe/openobject-server/openerp/http.py", line 195, in _call_function
    return self.func(*args, **kwargs)
TypeError: authenticate() got an unexpected keyword argument 'session_id'

Removing the session_id from authenticate params will produce then a second similar exception:

Traceback (most recent call last):
  File "/home/vaab/devel/python/0k-oe/openobject-server/openerp/http.py", line 321, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/home/vaab/devel/python/0k-oe/openobject-server/openerp/http.py", line 194, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/vaab/devel/python/0k-oe/openobject-server/openerp/service/model.py", line 111, in wrapper
   return f(dbname, *args, **kwargs)
  File "/home/vaab/devel/python/0k-oe/openobject-server/openerp/http.py", line 189, in checked_call
    return self.func(*a, **kw)
TypeError: search_read() got an unexpected keyword argument 'session_id'

So it seems the API changed in the ~8.0 series of OpenERP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions