Odoo Help

0

How to remove Create and Edit… from many2one field.?

By
Sairam Bandaru
on 10/15/15, 4:33 AM 2,467 views

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

2
Solanki Shamji
On 10/15/15, 5:03 AM

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

Sairam Bandaru
on 10/15/15, 5:22 AM

Try widget="selection". I edited answer.

Solanki Shamji
on 10/15/15, 5:54 AM

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

Sairam Bandaru
on 10/15/15, 6:29 AM

Njoy

Solanki Shamji
on 10/15/15, 6:30 AM
0
Ankit H Gandhi(AHG)
On 5/25/17, 7:03 AM

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.

0
Dr Obx
On 10/15/15, 5:55 AM

 

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

 


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 10/15/15, 4:33 AM
Seen: 2467 times
Last updated: 5/25/17, 7:03 AM