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.? [Closed]

By
priyankahdp
on 3/26/13, 2:33 AM 5,472 views

The Question has been closed

by
priyankahdp
on 04/30/2013 10:20:24

Please advice me How to remove "Create and Edit..." from many2one field.? that item shows below in the many2one fields which I filtered with domain option.

OpenERP version 7

3

Omal Bastin

--Omal Bastin--
1146
| 6 6 8
Kochi, Kerala, India
--Omal Bastin--

Swiming deep into openERP/ODOO

Omal Bastin
On 3/26/13, 3:38 AM

There is a module for openerp 6.1 to remove the create and edit option(in the openerp apps site search for web remove) from the default selection of many2one field. You can use this as an example and create you own module. or you can modify the base codes goto your server, then navigate to openerp/addons/web/static/src/js/view_form.js and remove the quick create functionality defined from the line number 2860.

4

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 3/26/13, 3:27 AM

I don't have much idea. May be for that you have to make changes in web addons.

But alternate solution is that you can make that many2one field selection. Add widget="selection" attribute in your xml.

<field name="ur_m2o_field" widget="selection>

Be careful, because widget="selection" don't work with dinamic domain!

Vasiliy Birukov
on 3/10/14, 7:26 AM

About This Community

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

Question tools

0 follower(s)

Stats

Asked: 3/26/13, 2:33 AM
Seen: 5472 times
Last updated: 3/16/15, 8:10 AM