コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
11611 ビュー

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
9942
1
9月 21
5610
3
1月 20
6783
5
9月 19
6251
0
3月 20
3374