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.


how to hide a button when you pressed it?

Lady Sharmane Udtuhan
on 7/13/13, 6:08 AM 955 views

how to hide a button when you pressed it?


Grover Menacho

--Grover Menacho--
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Systems Engineer + MBA

Grover Menacho
On 7/13/13, 2:42 PM

There are ways to do it. You can't do it directly with a function or something like that.

  1. If your button change the state of the record just write invisible when state=something
  2. If you are going to so something in other field with your button you can just make it invisible when that field is filled
  3. Or you can add an invisible bool field. The return of your button can be that boolean value: True. So if that boolean field is true you can add that attribute to your button.

There are tons of ways it depends waht are you doing with your button.

thAnks for your answer @grover.. :D

Lady Sharmane Udtuhan
on 7/14/13, 11:21 PM

You're welcome.

GH Mediacloud, Grover Menacho
on 7/15/13, 12:31 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

0 follower(s)


Asked: 7/13/13, 6:08 AM
Seen: 955 times
Last updated: 3/16/15, 8:10 AM