Odoo Help


can icon be applied based on state?

on 5/12/14, 11:33 AM 819 views


I want to apply different icons based on state. Can I do it ?

For example:

<button name="action" type="action" icon="gtk-go-forward-red" string="Schedule" states='draft'/>
<button name="action" type="action" icon="gtk-go-forward-green" string="Schedule" states='confirm'/>

In this , I have added 2 buttons that means 2 columns in tree view. Where I want to apply the button based on state only in single column. Is it possible?

Can you be more specific? Can an icon be applied to ...? ... based on the state of ...?

Rich Granata
on 5/12/14, 1:53 PM

I have updated my question. Have a look.

on 5/13/14, 2:00 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 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

0 follower(s)


Asked: 5/12/14, 11:33 AM
Seen: 819 times
Last updated: 3/16/15, 8:10 AM