diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-12-04 15:27:45 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-12-04 15:27:45 +0100 |
| commit | 61fc7a8dbee11468f2e3ba01af91acdebd64b5e5 (patch) | |
| tree | 1381954ee2a30fb9d000c589e11745712d492ff6 | |
| parent | 329cf28f97295ec4e3094f6e9d96dfe91821ac8e (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.js | 1 |
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(""); |
