Odoo Help


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.


Show a button in form view, when in view mode, and hide in edit mode

Pau Ubach
on 9/24/14, 5:44 AM 1,426 views

Is it possible to have a button in the header of a form view and hide it when we are in edit mode of this view?

On 1/13/16, 11:51 PM

You should try class="oe_read_only"



| 5 3 6
Jakarta, Indonesia
On 9/24/14, 6:50 AM

Just a hunch, try adding class="oe_form_buttons_view" to the button and see if it works.

Thanks Joe, no, it's not working.

Pau Ubach
on 9/24/14, 6:53 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)


Asked: 9/24/14, 5:44 AM
Seen: 1426 times
Last updated: 1/13/16, 11:51 PM