Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get an error each time I log into Odoo #66

Closed
lapagept opened this issue Dec 25, 2014 · 4 comments
Closed

Get an error each time I log into Odoo #66

lapagept opened this issue Dec 25, 2014 · 4 comments
Labels

Comments

@lapagept
Copy link

Only web_shortcuts is installed.

Odoo Server Error

Traceback (most recent call last):
  File "/home/odoo/openerp/http.py", line 518, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/openerp/http.py", line 539, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/openerp/http.py", line 295, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/openerp/http.py", line 292, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/odoo/openerp/http.py", line 755, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/openerp/http.py", line 388, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/addons/web/controllers/main.py", line 949, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/addons/web/controllers/main.py", line 941, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'get_user_shortcuts'
@bwrsandman bwrsandman added the bug label Dec 26, 2014
@bwrsandman
Copy link

I don't know web_shortcuts, but it looks like the model doesn't exist.
This is likely the expression that's failing:

getattr(request.registry.get(model), method)
# method = 'get_user_shortcuts'
# model = a model which doesn't exist
# request.registry.get(model) = None

I'm assuming this is the line which causes the error:

return this.model.call('get_user_shortcuts', [

Ping @adrienpeiffer

@matthieuchoplin
Copy link

Hi,

I do not think that the use case given is acurrate enough to reproduce the issue.

I think this is likely what has happened (and what I have reproduced):

  • the app web_shortcuts is installed, so the star icon is created to be able to add shortcut
  • the app web_shortcuts is uninstalled, the end user expects that the star icon gets removed but it is still there
  • the end user click on it the star icon, but because the module has been removed, the object does not exist anymore and this is why we have this error.

So I believe the issue comes from the uninstallation of the module, not its installation.

@nhomar
Copy link
Member

nhomar commented Aug 4, 2015

@matthieuchoplin did you clear your cachñe, it is extrange it do not disappear with the uninstallation.,

@pedrobaeza
Copy link
Member

This shouldn't be due to the module, and no feedback is given, so I close.

BT-fgarbely pushed a commit to BT-fgarbely/web that referenced this issue Apr 3, 2018
Syncing from upstream OCA/web (10.0)
vrenaville pushed a commit to camptocamp/web that referenced this issue Jul 19, 2018
[FIX] Add support for SNI to requests to avoid SSL
davidtranhp added a commit to davidtranhp/web that referenced this issue Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants