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

How to hide create and edit ,hyper link  and quick create on many2one field 

アバター
破棄
最善の回答

Try this in your .xml file

<field name="many2onefield" options="{'no_create': True, 'no_create_edit':True}" />

or

 < field name="many2onefield" widget='selection'/>

アバター
破棄
著作者

Yes.It worked for me. But I need to use 'web_m2x_options' module for that

Try widget="selection". I edited answer.

著作者

If we use widget="selection" then name_get won't call on that field and it will return all the data at a time Now issue reolved by installing the web_m2x_options thanks

最善の回答

Please use below code.

<attribute name="options">{'no_create_edit': True, 'no_create':True, 'no_open':True}</attribute>

or 

<attribute name="widget">selection</attribute>

I hope this help you.

Best Thanks,

Ankit H Gandhi.

アバター
破棄
最善の回答

Try this one,

<field name="your_field_name" options="{'no_quick_create':True,'no_create_edit':True,'no_open': True,}"/>

Read more: https://www.youtube.com/watch?v=X_sdiKGQgJo

アバター
破棄
最善の回答

 

<should work on any type of field options="{'no_create': True, 'no_quick_create': True, 'no_create_edit':True}"/>

 


アバター
破棄
関連投稿 返信 ビュー 活動
0
1月 25
1269
1
3月 25
652
2
3月 24
1629
1
9月 23
2460
1
3月 23
2267