Skip to Content
Menu
This question has been flagged
1 Reply
2459 Views

Guys really need some help to solve this out. In my way of thinking is not possible that last kernel update could damadge the python API.

Please can some one help me with this error?

2019-06-15 04:11:24,041 1164444 INFO kimenz-prod werkzeug: 192.168.1.10 - - [15/Jun/2019 04:11:24] "POST /web/dataset/call_kw/res.partner/onchange HTTP/1.0" 200 -
2019-06-15 04:11:27,844 1164444 ERROR kimenz-prod odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 937, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/bus/controllers/main.py", line 37, in poll
raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable
2019-06-15 04:11:27,845 1164444 INFO kimenz-prod werkzeug: 192.168.1.10 - - [15/Jun/2019 04:11:27] "POST /longpolling/poll HTTP/1.0" 200 -
2019-06-15 04:11:29,988 1164444 ERROR kimenz-prod odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 937, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 934, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 687, in call_kw
return call_kw_model(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 673, in call_kw_model
return downgrade(method, result, recs, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 272, in downgrade
return convert(value)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3347, in 
@api.returns('self', lambda value: value.id)
AttributeError: 'NoneType' object has no attribute 'id'​


I have the minimal idea who this could happend. Please if someone could give me a light at the end of the tunnel. My entire system is unusable because of this problem

Avatar
Discard
Best Answer

O objeto 'value' nao esta recebendo nenhum valor ao ser processado.

Exemplo:

value = self.env['sale.order'].browse([id]) //isto eh uma consulta no banco de dados

Se o id nao for encontrado para a consulta na tabela sale_order ira retornar NADA (vazio), logo:
value.id  nao tem como possuir id para satisfazer a chamada na programacao;

Avatar
Discard

Please respect the forum rules, this is an english only forum.

Related Posts Replies Views Activity
3
Mar 24
2514
2
Jan 23
897
1
Nov 20
6731
1
Sep 24
98
2
Dec 24
119