Go to file
2026-05-29 21:17:15 +07:00
models feat: restrict default payment and register journal selection to user-allowed journals 2026-05-29 21:17:15 +07:00
views first commit 2026-01-23 16:05:50 +07:00
__init__.py first commit 2026-01-23 16:05:50 +07:00
__manifest__.py refactor: replace global record rule with ORM overrides on account.journal to enforce journal access restrictions safely 2026-05-29 20:47:57 +07:00
.gitignore first commit 2026-01-23 16:05:50 +07:00
README.md refactor: replace global record rule with ORM overrides on account.journal to enforce journal access restrictions safely 2026-05-29 20:47:57 +07:00

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