Odoo Help


can icon be applied based on state?

on 5/12/14, 11:33 AM 1,131 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

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: 1131 times
Last updated: 3/16/15, 8:10 AM