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.

1

how to disable "create and Edit from..." from a menu [Closed]

By
Elmasry
on 5/14/13, 6:38 AM 4,514 views

The Question has been closed

by
Sudhir Arya (SA)
on 06/08/2013 08:31:06

how to disable "create and Edit from..." from a menu

Ex. when create timesheet under summery tab and when i add line i find the projects already created and at the end "Create and Edit...". i dt want this option available there.

i find an answer:

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.

but it remove create and edit from all menus over system i want to do that on just one menu like account when i add line in timesheet

thanks. :)

in form view give <form string="text" create="false" edit="false">

Maniganda
on 5/14/13, 7:39 AM

it didn't work bro .. but i could prevent creation using Access Rule

Elmasry
on 5/14/13, 10:06 AM
3

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 5/14/13, 7:37 AM

I think How to Remove Save/Save Buttons this what you are looking for.

7

Sandeep

--Sandeep--
6083
| 6 5 8
Delhi, India
--Sandeep--
Python OpenERP Developer http://in.linkedin.com/pub/sandeep-rana/3b/a16/786/
Sandeep
On 6/8/13, 4:24 AM

Hi in form view just type write create="false" and edit="false"

      <form string="My form" create="false">

Thanks
Sandeep

How about if you want to prevent editing only when an object has changed state...e.g not to edit a purchase order that has been approved by a project manager?

mmycool
on 3/31/14, 8:18 PM

About This Community

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

Question tools

2 follower(s)

Stats

Asked: 5/14/13, 6:38 AM
Seen: 4514 times
Last updated: 3/16/15, 8:10 AM