Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Restrict access to some journals, but not all

Subscribe

Get notified when there's activity on this post

This question has been flagged
accountingv16
1 Reply
919 Views
Avatar
Geert Janssens

Hi, I'm trying to restrict access to some journals for a given internal user. The user is allowed to access the other journals.


I have tried to create a new group for the Accounting application. This group inherits from the Administrator group, but I have added a new access rule that restricts access to all but 2 account journals.

This works to remove the journals from the accounting dashboard for this user. However I run into problems when this user tries to process a payment for a vendor bill. The payment wizard shows up fine and the list of journals is also filtered to exclude the two journals. However when the user selects a different journal from the default selected account I get an error. The log entry corresponding to this error is:

INFO db-name odoo.addons.base.models.ir_rule: Access Denied by record rules for operation: read on record ids: [12, 23], uid: 4, model: account.journal  

INFO db-name odoo.addons.base.models.ir_rule: Access Denied by record rules for operation: read on record ids: [12, 23], uid: 4, model: account.journal  

INFO db-name odoo.addons.base.models.ir_rule: Access Denied by record rules for operation: read on record ids: [12], uid: 4, model: account.journal  

WARNING db-name odoo.http: Due to security restrictions, you are not allowed to access 'Journal' (account.journal) records.


Records: name-of-restricted-journal (id=12)

User: name-of-restricted user (id=4)


This restriction is due to the following rules:

  • name of rule I created


Contact your administrator to request access if necessary.


This is unexpected. I just want to two journals not listed in the drop down and in the dashboard, but my rule seems to prevent the user from selecting any of the non-restricted journals as well.


What am I missing ?

0
Avatar
Discard
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


The issue occurs because Odoo’s record rules apply globally, not just in list views or dropdowns. When you restrict access to certain journals, Odoo still needs to read those records internally while processing payments or validating journal entries. Since your record rule blocks access completely, the system throws an Access Denied error even if the restricted journals aren’t being directly used. Essentially, the rule doesn’t just hide journals; it prevents Odoo from reading them anywhere in the backend.


To fix this, the recommended approach is to avoid using strict record rules for journal visibility and instead manage access through journal groups and user groups. You can assign specific journals to particular user groups in the journal’s configuration, which hides unwanted journals in dropdowns and dashboards without breaking background operations.


If you must use record rules, you can modify them to allow internal reads by relaxing the domain or using conditions that only limit UI visibility, but this can be tricky to maintain. In short, controlling access via user groups rather than record rules is the safest and cleanest way to restrict journals without affecting payment processing or other accounting workflows.


Hope it helps

-1
Avatar
Discard
Geert Janssens
Author

Thank you for your answer.

I have found the menu option "Journal groups" in Accounting. I can create a group that excludes the two journals I want to restrict access to.

However I have not yet found how to tie this to a user group. I don't see an setting in the individual journal's configuration page to set a user group for this. I don't see anything on the journal group's config page either. I have also looked at the user group configuration pages, but nothing seems to point at where I can set a journal group.

Can you explain that part a bit more in detail ? Thank you.

Geert Janssens
Author

Hi, I haven't gotten an answer yet to my follow-up question. Can you please provide more details on your first answer ? There are bits missing, or not matching what I see in my environment... Does your solution require additional modules to be installed ? If so, which ones ?

Ray Carnes (ray)

Unfortunately the part of this answer discussing "assigning journals to user groups" is wrong - neither Journals nor Journal Groups have any relationship with User Groups - likely this part of the answer was hallucinated by an AI ChatBot.

Geert Janssens
Author

I was afraid of that already :(
Do you see a way of achieving what I'm after ?

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Guía~Básica¿Cómo hablo con una persona en vivo en Delta?
accounting
Avatar
0
Nov 25
3
[7191]¿Cómo llamar a Latam Bogotá desde celular?
accounting
Avatar
0
Nov 25
38
«A L A S • Q U E • I N S P I R A N 🌎¿Cómo llamar a Booking en México?
accounting
Avatar
0
Nov 25
4
How can I manipulate the email template when sending an email in Accounting so that my PDF with the XML is inserted instead of the standard view with XML?
accounting
Avatar
Avatar
1
Nov 25
164
[Copa~@MX telefono]¿Cómo hablo con un agente de Copa?
accounting
Avatar
0
Nov 25
2
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now