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

Hello,

In any x2many field there is create and edit option. After click on create and edit it will redirect to form view of that model. But my question is that after click on any x2many create and edit option it will redirect to the field of same form view where x2many field is available.

Is it possible? If yes how’s it possible or if not then any other alternative way is available?

If more explanation is required then please let me know.

아바타
취소

So here you want that user can not able to open form view of that x2many relational model but just list view showed up under that x2many field in which user give input. Right ?

작성자

Yes. I dont want to open form view of x2many relation of model.but able to create record for that model. e.g. In my custom model there is one2many(for survey.page) field. In that one2many field there is many2many(for survey.question) field. From many2many field I don’t want to open form view of survey.question. But from that many2many field I am able to create record for survey.question.

작성자

For many2many field I am trying to use of option={'no_open':True} but issue not solve.

베스트 답변

use this on your many2many field

 option={'no_create_edit':True}

아바타
취소
관련 게시물 답글 화면 활동
1
12월 19
13956
2
11월 19
3427
3
11월 23
17571
3
11월 24
25281
1
4월 23
6248