Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
24875 มุมมอง

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

 

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

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

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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 .

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 23
7599
2
มี.ค. 23
46639
2
ธ.ค. 23
57604
0
มี.ค. 22
2303
3
มิ.ย. 20
10590