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

can icon be applied based on state?

By
Nehal
on 5/12/14, 11:33 AM 785 views

Hi,

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.

Nehal
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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