Odoo Help

Welcome!

This community 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.

-2

How to solve this problem

By
Arunkumar
on 9/19/16, 2:59 AM 193 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'

0
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.

 

0
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.



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/19/16, 2:59 AM
Seen: 193 times
Last updated: 9/21/16, 4:28 AM