Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
24843 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää

You can find the answer in given link .

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
syysk. 23
7567
2
maalisk. 23
46614
2
jouluk. 23
57572
0
maalisk. 22
2277
3
kesäk. 20
10536