-
Security25/25No findings
-
Activity0/25Last human commit 88 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
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
ResUsersLogin— Class 'ResUsersLogin' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceResUsersLogin— Class 'ResUsersLogin' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceResUsersLogin— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcecron_res_users_login— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.exceptions`) (3 occurrences in this file) migration-openerp-import · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE res_users SET login_date = (SELECT login_dt FROM res_users_login WHERE res_users_login.user_id = res_users.id)` - re-check the table/column names still match after upgrading. (4 occurrences in this file) migration-raw-sql-write · 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
Module to regroup all workarounds/fixes to avoid concurrency issues in SQL.
-
res.users login_date:
the login date is now separated from res.users; on long transactions, "re-logging" by opening a new tab changes the current res.user row, which creates concurrency issues with PostgreSQL in the first transaction.
This creates a new table and a function field to avoid this. In order to avoid breaking modules which access via SQL the login_date column, a cron (inactive by default) can be used to sync data.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
cron_sync_login_date(self, cr, uid, context=None)
Loading…