Hello.
This is my problematic: When a user join a specific group, I need to
automatically remove it from another group.
But I can't find how.
When you add a record on "res.groups" with an "implied_ids" field, you
can do a:
<record id="group_guest" model="res.groups">
…
<field name="implied_ids"
eval="[(3, ref('my_group'))],"/>
…
</record>
But, this didn't remove the user from the group "my_group" when she/he
join the group "group_guest". This only remove the implication that
joining the "group_guest" make the user also join "my_group".
Is my only solution is to override res.groups or res.user write()
method?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
4281
Widoki
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lis 24
|
1563 | ||
|
3
kwi 23
|
18147 | ||
How to add an user to a group
Rozwiązane
|
|
1
gru 22
|
14260 | |
|
2
wrz 22
|
4005 | ||
|
0
mar 19
|
2716 |