Odoo Help


Live Chat error

Vo Tri
on 8/4/16, 9:19 PM 258 views

Hello all,

How to use the Website Live Chat widget?

I use script or \http://localhost:8069/im_livechat/support/1 not run, error

2016-08-05 01:17:20,823 3646 WARNING live_chat openerp.addons.base.ir.ir_qweb: NameError: .o-flex-display is undefined in - on line 5, column 5:

4 .o_chat_window {

5 .o-flex-display();

6 .o-flex-flow(column, nowrap);

This error occured while compiling the bundle 'im_livechat.external_lib' containing:

- /mail/static/src/less/chat_window.less

- /mail/static/src/less/thread.less

- /im_livechat/static/src/less/im_livechat.less

2016-08-05 01:17:20,984 3646 INFO live_chat werkzeug: - - [05/Aug/2016 01:17:20] "GET /im_livechat/external_lib.css HTTP/1.1" 500 -

2016-08-05 01:17:21,055 3646 ERROR live_chat werkzeug: Error on request:

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi


File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute

application_iter = app(environ, start_response)

File "/home/trivo/PycharmProjects/core/openerp/service/server.py", line 245, in app

return self.app(e, s)

File "/home/trivo/PycharmProjects/core/openerp/service/wsgi_server.py", line 184, in application

return application_unproxied(environ, start_response)

File "/home/trivo/PycharmProjects/core/openerp/service/wsgi_server.py", line 170, in application_unproxied

result = handler(environ, start_response)

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 1416, in __call__

return self.dispatch(environ, start_response)

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 1390, in __call__

return self.app(environ, start_wrapped)

File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__

return self.app(environ, start_response)

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 1580, in dispatch

result = ir_http._dispatch()

File "openerp/addons/website/models/ir_http.py", line 190, in openerp.addons.website.models.ir_http.ir_http._dispatch (openerp/addons/website/models/ir_http.c:6538)

File "openerp/addons/web_editor/models/ir_http.py", line 16, in openerp.addons.web_editor.models.ir_http.ir_http._dispatch (openerp/addons/web_editor/models/ir_http.c:983)

File "/home/trivo/PycharmProjects/core/openerp/addons/base/ir/ir_http.py", line 176, in _dispatch

return self._handle_exception(e)

File "openerp/addons/website/models/ir_http.py", line 239, in openerp.addons.website.models.ir_http.ir_http._handle_exception (openerp/addons/website/models/ir_http.c:8219)

File "/home/trivo/PycharmProjects/core/openerp/addons/base/ir/ir_http.py", line 147, in _handle_exception

return request._handle_exception(exception)

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 737, in _handle_exception

return super(HttpRequest, self)._handle_exception(exception)

File "/home/trivo/PycharmProjects/core/openerp/addons/base/ir/ir_http.py", line 172, in _dispatch

result = request.dispatch()

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 768, in dispatch

r = self._call_function(**self.params)

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 315, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/trivo/PycharmProjects/core/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 308, in checked_call

result = self.endpoint(*a, **kw)

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 887, in __call__

return self.method(*args, **kw)

File "/home/trivo/PycharmProjects/core/openerp/http.py", line 465, in response_wrap

response = f(*args, **kw)

File "openerp/addons/im_livechat/controllers/main.py", line 18, in openerp.addons.im_livechat.controllers.main.LivechatController.livechat_lib (openerp/addons/im_livechat/controllers/main.c:1138)

AttributeError: 'NoneType' object has no attribute 'id'

I see im_livechat/controllers/main , mock_attacthment is None.

class LivechatController(http.Controller):    
@http.route('/im_livechat/external_lib.<any(css,js):ext>', type='http', auth='none')    
def livechat_lib(self, ext, **kwargs):        
asset = AssetsBundle("im_livechat.external_lib")        
mock_attachment = getattr(asset, ext)()        
if isinstance(mock_attachment, list):  # suppose that CSS asset will not required to be split in pages            
mock_attachment = mock_attachment[0]        # can't use /web/content directly because we don't have attachment ids (attachments must be created)        
status, headers, content = binary_content(id=mock_attachment.id, unique=asset.checksum)

I use odoo enterprise.


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 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: 8/4/16, 9:19 PM
Seen: 258 times
Last updated: 8/5/16, 1:35 AM