I have workflow with 4 states : new ,negotiation,won,lost and a button . I want my button only visible in state won and invisible in other state .
Here my code
<button string="Nhập kho" name="themkho" type="object" attrs="{'invisible': [('state','in',['new','negotiation','lost'])]}"/>
1 - How can i hide my button when i create new view ?
2- How can i use my button only 1 time and afterthat it will invisible for all state ?
3- How can hide edit button in state negotiation,won and lost ?
Sorry , i don't have enough karma to post image
http://upanh.biz/images/2014/11/22/12345.jpg