how to hide a button when you pressed it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3752
Views
There are ways to do it. You can't do it directly with a function or something like that.
- If your button change the state of the record just write invisible when state=something
- If you are going to so something in other field with your button you can just make it invisible when that field is filled
- 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
You're welcome.