Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
24881 Zobrazení

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

 

 

Avatar
Zrušit
Autor Nejlepší odpověď

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'

Avatar
Zrušit

You can find the answer in given link .

Related Posts Odpovědi Zobrazení Aktivita
2
zář 23
7668
2
bře 23
46741
2
pro 23
57682
0
bře 22
2349
3
čvn 20
10645