Skip to content
Health
40/100
poor
  • Security15/25
    4 minor findings
  • Activity0/25
    Last human commit 135 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.66 MB
Module directory on disk
Code analysis 5 migration notes 5 models 1 view 4 HTTP endpoints

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.

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
im_livechat, im_odoo_support

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
assets_backend im_chat assets ir.ui.view qweb Inherits web.assets_backend

HTTP endpoints 4

Route(s)HandlerAuthTypeMethodsFlags
/im_chat/history Controller.history none json ALL
/im_chat/image/<string:uuid>/<string:user_id> Controller.image none http ALL
/im_chat/init Controller.init none json ALL
/im_chat/post Controller.post none json ALL

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