Instant Messaging for OpenERP v7
This module is based on the socket.io real time implementation. It inherit Of the modules web_longpolling and web_socketio on bitbucket.
How Install the module web_im
Make your Nginx/Apache conf
example conf for nginx:
worker_processes 1; events {
worker_connections 1024;
} http {
server {
listen 80;
server_name www.myopenerp.fr;
location /socket.io {
proxy_pass http://127.0.0.1:8068;
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https; proxy_redirect off;
}
location / {
proxy_pass http://127.0.0.1:8069;
}
}
}
/etc/hosts:
127.0.0.1 www.myopenerp.fr
the port:
8069: the OpenERP server
8068: the SocketIO server
/socketio is the default path to dispatch the poll
With buildout
Example of buildout configuration:
[buildout]
parts = openerp
versions = versions
extensions = gp.vcsdevelop
vcs-extend-develop = git+http://github.com/buildout/buildout.git#egg=zc.buildout
vcs-update = true
develop = web_socketio/oe_web_socketio [openerp]
recipe = anybox.recipe.openerp[bzr]:server
version = bzr lp:openobject-server/7.0 openerp-server last:1
addons = bzr lp:openobject-addons/7.0 openerp-addons last:1
bzr lp:openerp-web/7.0 openerp-web last:1 subdir=addons
hg http://bitbucket.org/anybox/web_socketio web_socketio default
hg http://bitbucket.org/anybox/web_im web_im default eggs = oe.web.socketio openerp_scripts = nosetests=nosetests command-line-options=-d
oe_web_socketio=oe_web_socketio [versions]
lxml = 2.3.3
docutils = 0.9
collective.recipe.sphinxbuilder = 0.7.3
pyparsing = 1.5.6
Werkzeug = 0.8.3
Build the buildout:
bin/buildout -c buildout.cfg
Run the OpenERP server in the first shell:
bin/start_openerp -d mydb -i web_im
Run the Gevent SocketIO server in the second shell:
./bin/oe_web_socketio -d mydb
Without buildout
You must get the modules web_socketio, web_longpolling and web_im:
hg clone http://bitbucket.org/anybox/web_socketio
hg clone http://bitbucket.org/anybox/web_im
Install the python eggs needed for gevent_socketio:
pip install gevent
pip install gevent_psycopg2
pip install gevent_socketio
Run the OpenERP server in the first shell:
oe -d mydb -i web_im
Run the Gevent SocketIO server in the second shell:
python web_socketio/web_socketio/server.py -d mydb
Configuration
In the web client the Instant Massaging is loaded only if the user is connected and this user has got a IM user linked.
By administrator
Only the administrator can add new IM user. You can configure IM user in Instant Messaging/Setting/Users`. Filled the name and the user linked.
In the consiguration of the user, in the page Instant Messaging of the notebook. You can configure the advanced configuration for this user:
Group of Instant Messaging: The IM group for the IM user, If no group are selected then the user will have the No group group
- Display the other Instant Messaging user (default ALL):
-
- All: All the user are display in the user list
- Ònly connected: Display the connected or busy user.
- Filter (default None): Apply a domain to filter the user in user list
-
- None: See all the user
- User List: Selected the user to see
- List of user groups: See all the user come from the selected res.groups
- List from Instant Messaging groups: Sell all the user come from the selected im.group
- Custom configuration: Need to write a function which return a domain on im.user
The administrator can also create new IM group in Instant Messaging/Setting/Groups.
By user
TODO
Web client interface
Connectio state
TODO
Users list
TODO
Rooms
TODO
ROADMAP
Version: 0.1
- Add documentation to configure and use web_im
Version: 0.2
Refactor the user list:
Sort the user by connection state
Add an icon to show the state of the connection of the user list
let the color of the user in black
replace the select html by ul and li node
move the advanced configuration from res.user to im.user
add image on im.user, if not filled then take on the res.users
- Make 2 view for the im.user
-
- Complete: only state is readonly
- user own configuration: Can change only the name and the image
Update the documentation
Version: 0.3
Add multichater room notion
Update the documentation
Version: 0.4
- Add action bar on the user in user's list and room menu
- Add action webcan, use the webcam module which already exist
Update the documentation
Instant Messaging for OpenERP v7的更多相关文章
- ubuntu server激活即时通讯IM服务 Instant Messaging is not activated on this server
转自:http://shine-it.net/index.php/topic,16469.msg28364.html ubuntu server 下 odoo激活及时通讯功能im OpenERP IM ...
- Instant Messaging for Business: Your 10 Best Options
Instant Messaging for Business: Your 10 Best Options By Iaroslav Kudritskiy It's probably not a surp ...
- A tutorial that will show you how to build an instant messaging app with Sinch.
http://stackoverflow.com/questions/26247986/unsatisfiedlinkerror-couldnt-load-sinch-android-rtc-from ...
- OpenERP在哪储存附件?
我们知道对OpenERP中的每个内部对象(比如:业务伙伴,采购订单,销售订单,发货单,等等)我们都可以添加任意的附件,如图片,文档,视频等.那么这些附件在OpenERP内部是如何管理的呢? 默认情况下 ...
- openerp 常见问题 OpenERP在哪储存附件?(转载)
OpenERP在哪储存附件? 原文地址:http://cn.openerp.cn/where_to_store_attachement_in_openerp_7/ 我们知道对OpenERP中的每个内部 ...
- openerp 经典收藏 通过view实现字段的只读、隐藏操作(转载)
通过view实现字段的只读.隐藏操作 原文地址:http://cn.openerp.cn/view_groups/ 在OpenERP V7视图(ir.ui.view)多了一个非常有用的字段(group ...
- openerp 经典收藏 Openerp开发进销存系统完毕总结(转载)
原文地址:http://blog.csdn.net/heartrude/article/details/9142463 Openerp开发进销存系统完毕总结 分类: 代码历程 OpenERP 工程思想 ...
- xmpp 协议之可扩展消息(messaging)与状态(presence)协议核心: RFC 3920
附:asmack已经不需要了,4.1以后的smack已经可以在android上使用了. XMPP Clients: http://xmpp.org/software/clients.html An ...
- Openerp 7.0 附件存储位置
我们知道对OpenERP中的每个内部对象(比如:业务伙伴,采购订单,销售订单,发货单,等等)我们都可以添加任意的附件,如图片,文档,视频等.那么这些附件在OpenERP内部是如何管理的呢? 默认情况下 ...
随机推荐
- [centos6.5] yum makecache 连接错误的解决办法
http://mirrors.163.com/.help/centos.html 访问这个就懂了
- 完全背包【p1832】A+B Problem(再升级)
Description 给定一个正整数n,求将其分解成若干个素数之和的方案总数. Input 一行:一个正整数n Output 一行:一个整数表示方案总数 素数之和 ? 背包啊. 没一遍切的题都不是水 ...
- Xamarin XAML语言教程控件模板的模板绑定
Xamarin XAML语言教程控件模板的模板绑定 控件模板的模板绑定 为了可以轻松更改控件模板中控件上的属性值,可以在控件模板中实现模板绑定功能.模板绑定允许控件模板中的控件将数据绑定到公共属性上. ...
- 【点分治】【乘法逆元】hdu4812 D Tree
思路比较裸,但是要把答案存到哈希表里面,这里需要一定技巧,否则会被K=1且点权全是1的数据卡飞.预处理乘法逆元.TLE了一天.换了种点分治的姿势…… #pragma comment(linker,&q ...
- STL之vector2
描述 依次输入n个整数,每次输入时检查该值是否已经出现在vector中,如果存在则不插入,否则将其插入到开头位置. 部分代码已经给出,请补充完整,提交时请勿包含已经给出的代码. int main() ...
- 使用MultipleInputs和MultipleOutputs
还是计算矩阵的乘积,待计算的表达式如下: S=F*[B+mu(u+s+b+d)] 其中,矩阵B.u.s.d分别存放在名称对应的SequenceFile文件中. 1)我们想分别读取这些文件(放在不同的文 ...
- docker常用命令 状态图
http://blog.csdn.net/permike/article/details/51879578
- 使用Spring Boot上传文件
原文:http://www.cnblogs.com/ityouknow/p/8298344.html 上传文件是互联网中常常应用的场景之一,最典型的情况就是上传头像等,今天就带着带着大家做一个Spri ...
- 使用强大的可视化工具redislive来监控我们的redis
原文:http://www.cnblogs.com/huangxincheng/archive/2016/06/08/5571185.html 作为玩windows的码农,在centos上面装点东西, ...
- XCode编译速度慢的解决方案
提升编译链接的速度主要有以下三个方式: 1. 提高XCode编译时使用的线程数 defaults write com.apple.Xcode PBXNumberOfParallelBuildSubta ...