Odoo Help

Welcome!

This community 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.

0

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

By
Sairam Bandaru
on 10/15/15, 4:33 AM 1,450 views

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

2

Solanki Shamji

--Solanki Shamji--
1293
| 5 2 6
Baroda, India
--Solanki Shamji--

Hello!

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

 


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/15/15, 4:33 AM
Seen: 1450 times
Last updated: 10/15/15, 5:55 AM