Odoo Help


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,779 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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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