Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Adding a new security group to an existing module

Odoberať

Get notified when there's activity on this post

This question has been flagged
security.xmlodoo18securityGroupsOdoov18
2 Replies
443 Zobrazenia
Avatar
samual

Hello, I am trying to add a special security group to an existing module using a custom module in order to restrict some functionalities to the user assigned this group.
However when i install the add on the module disappears from the access rights of users and can only show while in debug mode and instead of a drop down menu it shows as checkbox.
so what is the correct way to add a new security group to an existing module without altering the source code??

0
Avatar
Zrušiť
samual
Autor
Yeah this is exacrlty what i am looking for i need to add the newly added group to the chain in order for it to appear in the drop down.
i figured i will just add it to the start of the chain problem is that it has more than reading access and if i add it in the middle i need to restrict the group above it from accessing what it can access.


Chris TRINGHAM

This is the limitation of the way that Odoo inherits the access rights to create a "chain".

If you need to have Segregation of Duties (e.g. one user enters the transaction, another user cannot enter but can approve) you will probably have to create one or more extra "technical" user access group(s) that do NOT belong to an application - or what Odoo calls a "privilege" in Odoo 19.

Avatar
Chris TRINGHAM
Best Answer

Take a look at the Sales User (All Documents) group and you will see that it

  1. inherits the Sales User (Own Documents Only) group
  2. is inherited by the Sales Administrator group

This "chain" of three (or any number) of groups is what tells Odoo to display it as a dropdown.  Otherwise each individual group has to be selected.

So your new group needs to be added into that "chain"

1
Avatar
Zrušiť
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


To add a new security group to an existing Odoo module without altering its source code, create a custom module that extends the existing access rights rather than replacing them. Define your new security group in a groups.xml file with noupdate="1" to prevent issues during module updates.

In your ir.model.access.csv file, add new access rights records for your security group, referencing the existing access rights records from the target module using their XML IDs. This ensures that your new group has the desired permissions without affecting the existing access rights. Optionally, you can adjust views to hide specific fields or buttons based on the user's group membership. Remember to declare a dependency on the target module in your custom module's manifest.

Reference:-

* https://www.cybrosys.com/blog/how-to-create-security-group-and-manage-access-rights-in-odoo-18

* https://www.youtube.com/watch?v=uUznwThpLmc


Hope it helps

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
How do I restrict users to only one model in Odoo?
security.xml odoo17 securityGroups
Avatar
0
dec 24
1594
Public holidays overlap restriction Solved
holidays odoo18 Odoov18 time off
Avatar
Avatar
1
dec 25
118
zoomOdoo is not a function
odoo Upgrade odoo18 Odoov18
Avatar
Avatar
1
nov 25
465
Odoo18 - How to select Email Templates when sending multiple invoices
odoo18
Avatar
Avatar
1
nov 25
1835
POS order line custom field (serial_id) not synced to backend after payment (Odoo 18)
odoo18
Avatar
Avatar
1
nov 25
880
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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