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

Hello everyone,

I am using Odoo 12 and need to remove the "external connection/link" widget from the form view for a many2one field.

Please refer to the below image:


I have used on my xml:

<field name="my_field" options="{'no_create_edit': True}"/>

This code worked for the "Create..." option on the list, but did not removed the widget in front of the field.

How can I do that?

Thank you in advance

Regards

Paulo

아바타
취소
베스트 답변

options='{"no_open": True}' is used to prevent you from opening the record.


Syntax:

<field name="your_m2o_field" options="{'no_open': True}"
아바타
취소
작성자

Thank you @Ray,

It works exactly as expected.

Best regards

작성자

@Ray,

This is exactly the kind of "answer" we all newbies expect to read from the pro's.

A simple answer and a valuable syntax to help us better understand the code/solution provided.

Thank you once again! +100 for you!

관련 게시물 답글 화면 활동
1
4월 19
10007
1
9월 21
5678
3
1월 20
6873
5
9월 19
6316
0
3월 20
3434