Instant Messaging

im_chat
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/8.0/im_chat
VERSION
VERSION 1.0
CATEGORY
CATEGORYTools
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOpenERP SA
MAINTAINERS
MAINTAINERSOpenERP SA
COMMITTERS
COMMITTERSOdoo Translation Bot, Martin Trigaux, Fabien Pinckaers, Antony Lesuisse, Olivier Dony, Denis Ledoux, Goffin Simon, Cedric Snauwaert, Jérome Maes, Richard Mathot, Aaron Bohy
WEBSITE
WEBSITEhttps://www.odoo.com/page/live-chat
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:45:39
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - web
    - bus
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Instant Messaging
=================

Allows users to chat with each other in real time. Find other users easily and
chat in real time. It support several chats in parallel.
        

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
assets_backend im_chat assets ir.ui.view qweb Inherits web.assets_backend
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • get_messages(self, cr, uid, uuid, last_id=False, limit=20, context=None)
    get messages (id desc) from given last_id in the given session
  • init_messages(self, cr, uid, context=None)
    get unread messages and old messages received less than AWAY_TIMER ago and the session_info for open or folded window
  • post(self, cr, uid, from_uid, uuid, message_type, message_content, context=None)
    post and broadcast a message, return the message id

New fields (0)

No new fields.

Public methods (2)
  • check_users_disconnection(self, cr, uid, context=None)
    disconnect the users having a too old last_poll
  • update(self, cr, uid, presence=True, context=None)
    register the poll, and change its im status if necessary. It also notify the Bus if the status has changed.

New fields (0)

No new fields.

Public methods (8)
  • add_user(self, cr, uid, uuid, user_id, context=None)
    add the given user to the given session
  • get_image(self, cr, uid, uuid, user_id, context=None)
    get the avatar of a user in the given session
  • is_in_session(self, cr, uid, uuid, user_id, context=None)
    return if the given user_id is in the session
  • is_private(self, cr, uid, ids, context=None)
  • session_get(self, cr, uid, user_to, context=None)
    returns the canonical session between 2 users, create it if needed
  • session_info(self, cr, uid, ids, context=None)
    get the session info/header of a given session
  • update_state(self, cr, uid, uuid, state=None, context=None)
    modify the fold_state of the given session, and broadcast to himself (e.i. : to sync multiple tabs)
  • users_infos(self, cr, uid, ids, context=None)
    get the user infos for all the user in the session

New fields (0)

No new fields.

Public methods (1)
  • im_search(self, cr, uid, name, limit=20, context=None)
    search users with a name and return its id, name and im_status