Hi, I created a new group to have a middle level between "Project / Manager" and "Project / User". Once the group created is not accessible through the dropdown of User/Access Rights but as checkbox at the bottom of the page. Why it does that and how I can put it in the dropdown? Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
Yes it is strange behavior. If you inherit group one by one, then it will be in list (like roles). But if you have standalone at least one, then it will be like options. It cause impossible define exclusive roles.
If you need middle level, for example "Project/Specialist", then you need inherit Specialist from User and Manager inherit from Specialist.
<record id="group_xxx_user" model="res.groups">
<field name="name">User</field>
<field name="category_id" ref="module_category_yyy"/>
</record>
<record id="group_xxx_specialist" model="res.groups">
<field name="name">Specialist</field>
<field name="category_id" ref="module_category_yyy"/>
<field name="implied_ids" eval="[(4, ref('group_xxx_user'))]"/>
</record>
<record id="group_xxx_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="module_category_yyy"/>
<field name="implied_ids" eval="[(4, ref('group_xxx_specialist'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
, where xxx
- name of module, yyy
- name of category.
Or define it through web interface: "Settings/Users/Groups/Inherited"
It's extremely useful, thanks. For those who don't understand it for the first read (like me): if you use a dropdown like Vasily suggested, a dropdown item will make the user the member off all groups ABOVE that group too! So this's why it's impossible to define exclusive roles.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
10
dic 23
|
36696 | ||
|
0
dic 24
|
9433 | ||
|
3
set 24
|
21552 | ||
|
5
dic 24
|
52851 | ||
|
4
lug 24
|
10525 |
ACL Concepts: https://learnopenerp.blogspot.com/2018/01/groups-and-access-rights-in-odoo.html