# 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`, and `unlink` override on `account.journal` to 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 1. Go to **Settings** > **Users & Companies** > **Users**. 2. Open the user you want to restrict. 3. In the **Allowed Journals** field, select the journals the user is allowed to access. 4. Save. ## Author Suherdy Yacob ## License LGPL-3