Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
8 Antwoorden
71317 Weergaven

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

Avatar
Annuleer
Beste antwoord

Try this in your .xml file

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

or

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

Avatar
Annuleer
Auteur

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

Try widget="selection". I edited answer.

Auteur

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

Beste antwoord

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.

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Beste antwoord

 

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

 


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
jan. 25
1265
1
mrt. 25
652
2
mrt. 24
1608
1
sep. 23
2448
1
mrt. 23
2250