hi all, today i want to share about how to setup IM (instant messaging) on OpenERP 7, actually it will launch on Openerp V8, but i saw the module was release in trunk.
lets start :
1. install gevent lib.
sudo apt-get install python-gevent
sudo pip install gevent-psycopg2
2. make gevent running on openerp
vim openerp/cli/server.py
# febru@soluvas.com
if openerp.tools.config.options["gevent"]:
_logger.info('Using gevent mode')
import gevent
import gevent.monkey
gevent.monkey.patch_all()
import gevent.wsgi
import gevent_psycopg2
gevent_psycopg2.monkey_patch()
openerp.evented = True
_logger.info('Using gevent mode')
else:
openerp.evented = False
vim openerp/service/__init__.py
vim openerp/service/workers.py
vim openerp/service/wsgi_server.py
vim openerp/tools/config.py
4. test your changes with
./openerp-server --gevent
5. update and activate your im module on setting-menu then see the chat is running
references :
http://help.openerp.com/question/22521/how-to-activate-chat-im-in-v8-trunk/
https://pypi.python.org/pypi/gevent-psycopg2
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-gevent/+merge/125848
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-chat2-niv/+merge/149177
https://lists.launchpad.net/openerp-dev-gtk/msg30996.html
lets start :
sudo apt-get install python-gevent
sudo pip install gevent-psycopg2
2. make gevent running on openerp
vim openerp/cli/server.py
# febru@soluvas.com
if openerp.tools.config.options["gevent"]:
_logger.info('Using gevent mode')
import gevent
import gevent.monkey
gevent.monkey.patch_all()
import gevent.wsgi
import gevent_psycopg2
gevent_psycopg2.monkey_patch()
openerp.evented = True
_logger.info('Using gevent mode')
else:
openerp.evented = False
vim openerp/service/__init__.py
vim openerp/service/workers.py
vim openerp/service/wsgi_server.py
vim openerp/tools/config.py
4. test your changes with
./openerp-server --gevent
5. update and activate your im module on setting-menu then see the chat is running
instant messenger source code
references :
http://help.openerp.com/question/22521/how-to-activate-chat-im-in-v8-trunk/
https://pypi.python.org/pypi/gevent-psycopg2
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-gevent/+merge/125848
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-chat2-niv/+merge/149177
https://lists.launchpad.net/openerp-dev-gtk/msg30996.html