Skip to main content
Version: 1.2.9

Profiles & Account Isolation Technical Reference

The Profiles module handles user profile setups and provides local data isolation across multiple Odoo instances.

Codebase Map​

LayerPathPurpose
UI Componentsqml/features/settings/Profiles.qmlProfile selection and instance switching interface
Logic & Statemodels/accounts.jsSession validation and active instance token switching

Database Multi-Instance Isolation​

The SQLite schema isolation uses a relational key user_id mapping to the active row in the users (accounts) table.

SQL Filter Strategy​

Every data retrieval query executed by JavaScript models checks the current active user context from the global settings:

SELECT * FROM project_task_app
WHERE user_id = (SELECT value FROM app_settings WHERE key = 'active_user_id');

This structure ensures that data from separate accounts/instances (e.g., Work vs Personal) is segregated, avoiding data leaks between environments.