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 Disable create and discard button for specific function in OpenERP?

By
arsalan
on 8/19/14, 1:38 AM 2,075 views

I have been developing module for OpenERP-7. I wanted to know that how can I disable create/delete button for specific function. Like I am clicking on a button to open a tree view. All I want is to disable the create button form top of that tree view. How can I achieve this in OpenERP. I dont have any other ml view for this tree view. I am calling the only tree view. But this time I dont need the create/discard button. Can anyone guide me how to do this. Hopes for suggestion and guidance

1

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 8/19/14, 1:44 AM

Hi

Try this code

 

<tree string="Your Tree view name" edit="false" create="false" delete="false">

This code remove create,write and delete button

 

But this will remove create/delete button from every tree view of the model. I just want to disable them when coming through my specific button

arsalan
on 8/19/14, 2:30 AM

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: 8/19/14, 1:38 AM
Seen: 2075 times
Last updated: 8/23/15, 11:26 AM