Health
40/100
poor
-
Security15/254 minor findings
-
Activity0/25Last human commit 135 months ago
-
Required by20/252 modules depend on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
im_chat_conversation_state— Class 'im_chat_conversation_state' still inherits from the old-style `osv.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (5 occurrences in this file) migration-old-api-base · sourceim_chat_conversation_state— Class 'im_chat_conversation_state' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (9 occurrences in this file) migration-old-style-fields · sourceim_chat_presence— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (5 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
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
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
im_chat assets | ir.ui.view | qweb | Inherits web.assets_backend |
HTTP endpoints 4
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/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