summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-12-04 15:27:45 +0100
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-12-04 15:27:45 +0100
commit61fc7a8dbee11468f2e3ba01af91acdebd64b5e5 (patch)
tree1381954ee2a30fb9d000c589e11745712d492ff6
parent329cf28f97295ec4e3094f6e9d96dfe91821ac8e (diff)
Removed current user from search view
bzr revid: nicolas.vanhoren@openerp.com-20121204142745-3md4p6r01634npl0
-rw-r--r--addons/web_im/static/src/js/im.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_im/static/src/js/im.js b/addons/web_im/static/src/js/im.js
index c47a51d3a05..518b5634b84 100644
--- a/addons/web_im/static/src/js/im.js
+++ b/addons/web_im/static/src/js/im.js
@@ -102,6 +102,7 @@ openerp.web_im = function(instance) {
var self = this;
return this.user_search_dm.add(users.query(["name", "im_status"])
.filter([["name", "ilike", this.get("current_search")]])
+ .filter([["id", "<>", instance.session.uid]])
.limit(USERS_LIMIT).all()).then(function(result) {
self.add_to_user_cache(result);
self.$(".oe_im_input").val("");