跳至內容
選單
此問題已被標幟
2 回覆
24872 瀏覽次數

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

 

 

頭像
捨棄
作者 最佳答案

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'

頭像
捨棄

You can find the answer in given link .

相關帖文 回覆 瀏覽次數 活動
2
9月 23
7595
2
3月 23
46639
2
12月 23
57600
0
3月 22
2299
3
6月 20
10586