Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
8 Відповіді
71295 Переглядів

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}"/>

 


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
січ. 25
1261
1
бер. 25
652
2
бер. 24
1599
1
вер. 23
2442
1
бер. 23
2231