Odoo Help


How to solve this problem

on 9/19/16, 2:59 AM 668 views

Traceback (most recent call last):
  File "/home/next/git/PMM-Transform/openerp/http.py", line 537, in _handle_exception    return super(JsonRequest, self)._handle_exception(exception)  File "/home/next/git/PMM-Transform/openerp/http.py", line 574, in dispatch    result = self._call_function(**self.params)  File "/home/next/git/PMM-Transform/openerp/http.py", line 310, in _call_function    return checked_call(self.db, *args, **kwargs)  File "/home/next/git/PMM-Transform/openerp/service/model.py", line 113, in wrapper    return f(dbname, *args, **kwargs)  File "/home/next/git/PMM-Transform/openerp/http.py", line 307, in checked_call    return self.endpoint(*a, **kw)  File "/home/next/git/PMM-Transform/openerp/http.py", line 803, in __call__    return self.method(*args, **kw)  File "/home/next/git/PMM-Transform/openerp/http.py", line 403, in response_wrap    response = f(*args, **kw)  File "/home/next/git/PMM-Transform/addons/web/controllers/main.py", line 945, in call_kw    return self._call_kw(model, method, args, kwargs)  File "/home/next/git/PMM-Transform/addons/web/controllers/main.py", line 937, in _call_kw    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)  File "/home/next/git/PMM-Transform/openerp/api.py", line 241, in wrapper    return old_api(self, *args, **kwargs)  File "/home/next/git/PMM-Transform/openerp/models.py", line 3138, in read    records = self.browse(cr, user, ids, context)  File "/home/next/git/PMM-Transform/openerp/api.py", line 241, in wrapper    return old_api(self, *args, **kwargs)  File "/home/next/git/PMM-Transform/openerp/models.py", line 5224, in browse    return self._browse(Environment(cr, uid, context or {}), ids)  File "/home/next/git/PMM-Transform/openerp/models.py", line 5217, in _browse    env.prefetch[cls._name].update(ids)TypeError: unhashable type: 'list'

Juan Vicente Pascual
On 9/19/16, 8:48 AM

 try with ids.id  but have to ensure that only has one element.

Kind regards.


ayman mohammed adam
On 9/19/16, 8:03 AM

dear Arunkumar,

we need more details and send your code

I think the code confused between old api and new api.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/19/16, 2:59 AM
Seen: 668 times
Last updated: 1/11/17, 10:17 PM