콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4277 화면

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?

아바타
취소
관련 게시물 답글 화면 활동
1
11월 24
1563
3
4월 23
18147
1
12월 22
14259
2
9월 22
4005
0
3월 19
2716