1.0 KiB
1.0 KiB
Account Allowed Journal
Summary
This module allows restricting users to specific journals in Odoo's Accounting application.
Features
- adds a new field "Allowed Journals" to the User form view.
- Access Control:
- If "Allowed Journals" is empty, the user has access to ALL journals (standard behavior).
- If "Allowed Journals" is populated, the user can ONLY access the selected journals.
- Implements an ORM-level
_search,write, andunlinkoverride onaccount.journalto safely and recursively filter journals without crashing on standard views. - Context-Aware Bypass: Automatically detects and bypasses restrictions during critical Point of Sale (POS) operations and administrative automated/clearing background contexts.
Configuration
- Go to Settings > Users & Companies > Users.
- Open the user you want to restrict.
- In the Allowed Journals field, select the journals the user is allowed to access.
- Save.
Author
Suherdy Yacob
License
LGPL-3