Odoo Help

Welcome!

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.

0

Button to change/indicate the line state in a tree view

By
mohsel
on 8/7/14, 10:21 AM 856 views

I have a tree view which the objects have a state, i created a button field inside de tree view that relate to a function to change the state from 'draft' to 'validated' but what i want now is to change the icon once the state is 'validated' How can i do this ?

0

IBS

--IBS--
1302
| 4 5 8
Tétouan, Morocco
--IBS--

For more informations about IBS, please visit our website at www.ibs-na.com.

For a specific questions, collaboration or help, please send us an email to support@ibs-na.com

IBS
On 8/10/14, 1:41 PM

Put a condition on the invisible attribute of the button

Have 2 buttons, one visible when the state is draft and another visible when the state is validated.

Use the attrs attribute to achieve this.

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

1 follower(s)

Stats

Asked: 8/7/14, 10:21 AM
Seen: 856 times
Last updated: 3/16/15, 8:10 AM