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

I have a many2many field that represents a list of student. I want to only add student to that list but not remove any students from that list (in form view). Is it possible to implement that?

아바타
취소
베스트 답변

Hi Tung Nguyen,

Please note to explain which version of Odoo you are referring to. In Odoo 15 you can use Node options to define the possibility of the records delete option Many2Many fields. an example is given below :

<field name="user_ids" string="Allow users" widget="many2many" options="{'unlink': False}"/>


Regards

아바타
취소
작성자

I'm using Odoo 14 and it worked as well.

관련 게시물 답글 화면 활동
15
9월 21
42122
2
2월 21
3149
1
2월 25
2557
1
2월 24
2027
0
7월 24
3099