تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
8 الردود
71246 أدوات العرض

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
يناير 25
1231
1
مارس 25
652
2
مارس 24
1529
1
سبتمبر 23
2379
1
مارس 23
2202