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

Access control (exclusive groups)

Subscribe

Get notified when there's activity on this post

This question has been flagged
managergroupsaccessrights
4432 Views
Avatar
David Yao

Hi all, I would like to do some access control for my custom module but the problem is these roles/groups need to be somehow exclusive. Here is what I want:

    I have 5 menuitem, No.1, No.2, No.3, No.4 and No.5.

    And I would like have groups G, A, Manager, and Admin.

    For G group, they are able to enter No.1 and No.2 menu.

    For A group, they can enter No.4 and No.5 menu.

    For Manager group, only No.3 is needed.

    For Admin(superuser), of course, all of it

What I have tried is set groups="" on each menuitem in the view.xml file, and also added all of groups into corresponding security.xml  Everything seems good except Manager group.

    Current: Manager group can see No.1, No.2 and No.3 menu

    Expect: Manager group can see No.3 only

Is it because manager is a keyword for Odoo? Or what I should do to achieve it? Any hint will be useful! Thank a lot!

0
Avatar
Discard
David Yao
Author

I understand that Admin role will be only one. And as you can see, I want manager(or whatever name it is, as long as role play is the same) can be multiple

David Yao
Author

For more information, under setting --> user, it will automatically add G group if I select Manager group. Even I try un-click G group manually, it will add again, not working in this way.

Niyas Raphy (Walnut Software Solutions)

Hi, after activating developer mode go to menu settings -> Users -> groups. Then open the group of your Manager, Then in the Inherited tab in the page, you can see that G is inherited by Manager, just remove the G from inherited and see

David Yao
Author

Thx for apply, I see what you mean, but then another thing confusing me. If my understanding is correct, this inherit group function is triggered by "implied_ids", but in my code, I comment it out at first place. So, It looks like Odoo inherit it by default (like I said, maybe "Manager"is a keyword?), or is it about database didn't update? Thus, in coding aspect, I should add something like(3, ref('module_name.group_name) to remove the relation between them, right? If so, can you provide more information on this ref(0 1 2 3 4 5 6, "") with some example?

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
Uncheck a group
groups accessrights
Avatar
Avatar
1
Jun 23
4008
UNSPSC accounting fields missing when creating new access permissions group [Enterprise online V15]
groups accessrights Studio
Avatar
0
Jul 23
2741
Show button based on access rights Solved
groups accessrights XML
Avatar
Avatar
1
Nov 21
4453
Access right problem
inheritance groups accessrights v15
Avatar
0
Jul 23
2
Access right problem
groups roles accessrights v15
Avatar
0
Jul 23
5
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