Odoo Help


In Human Resource, show smart button as per stages

Rahul Shendge
on 8/12/15, 4:09 AM 1,250 views

Hello Everyone,

I am new in Odoo. I want to show that smart button only on particular stage. Not every stage. On stage change it should respective button that we want to show.

Thanks in advanced.


Hello Rahul,

You can use "attrs" attribute. See in attached screen, I have added an attribute attrs (attrs="{'invisible':[('name','=','test')]}") to hide smart button "Variant Price". As per this attrs value, when product name will be "test" smart button "Variant Price" will not be visible.

Just like that you can use attrs in your view to hide smart button in certain stages. 

Hope this helps,

Drees Far
On 8/12/15, 5:15 AM

For Smart Buttons, here are multiple usefull links.

Try them & Enjoy them.



Hope this may help you understand.


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: 8/12/15, 4:09 AM
Seen: 1250 times
Last updated: 8/12/15, 6:13 AM