Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4284 Weergaven

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?

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 24
1563
3
apr. 23
18149
1
dec. 22
14261
2
sep. 22
4006
0
mrt. 19
2716