Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
24840 Lượt xem

I just add this module in addons and than restart the services so i get this error:

  File "/opt/openerp/openerp-7.0-20140519-231318/openerp/addons/im/__init__.py", line 2, in <module>
    import im
  File "/opt/openerp/openerp-7.0-20140519-231318/openerp/addons/im/im.py", line 30, in <module>
    from openerp import http
ImportError: cannot import name http

 

 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Refer the following link :
https://www.odoo.com/forum/Help-1/question/What-happened-to-module-openerphttp-44919

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

i added this from openerp.addons.web import http as http and from openerp.addons.web import http as request so now i am getting the below error

@http.route('/longpolling/im/poll', type="json", auth="none") AttributeError: 'module' object has no attribute 'route'

Ảnh đại diện
Huỷ bỏ

You can find the answer in given link .

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 23
7565
2
thg 3 23
46614
2
thg 12 23
57571
0
thg 3 22
2276
3
thg 6 20
10536