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

Hi,

When i have a many2one fields and the related table is empty i have the option to create and edit said object from the model that holds the many2one in the form of a dropdown list, right?

Is any way that i can eliminate that option alltogether? If there is no record in the related table that it will say only that?

Thanks

아바타
취소
베스트 답변

<field name="name_id" edit="false"/>

아바타
취소

sorry you can try this <field name="name_id" widget="selection"/>

작성자

A selection widget? Uhmn, never could have guessed it, i am going to try it. Thanks.

베스트 답변

This is a duplicate question. You can see original question How to Hide Save, Remove Option.

아바타
취소
작성자

Actually i don't want to remove the create or save button from my form, i just want to remove the option to create it from a many2one call. I want the people not be able to create a client from a sale order for example. Not the create button from the clients view.

작성자

I don't want to eliminate the create or save button, i just want, for example, stop the user from creating a new client from a sale order via the many2one client field.

관련 게시물 답글 화면 활동
3
2월 25
35674
2
6월 23
2969
2
8월 15
5001
1
7월 23
2504
1
5월 23
2847