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

Having different statusbar widgets in the same view makes the statusbar not highlight the present state

By
Javier Almancevo
on 11/22/15, 9:06 AM 357 views

Hi

I have a statusbar widget working correctly if I only have one in the xml view, but as soon as I try something like this:

<field name="state" widget="statusbar"

statusbar_visible="received,processing,ready,delivered" states="received,processing,ready,delivered"/>

<field name="state" widget="statusbar"

statusbar_visible="received,processing,partially_ready,ready,delivered" states="partially_ready"/>

<field name="state" widget="statusbar"

statusbar_visible="received,processing,ready,partially_delivered,delivered" states="partially_delivered"/>


Basically, I want to show the states partially_ready and partially_delivered in the status bar only when they are highlighted and the rest of the time have a shorter status bar without those intermediates states. But as soon as I set up this code the status bar shows but it does not highlight the adequate states, its all grey no matter which state the model is in. It works completely fine if I set only one statusbar widget in the view, but it does not highlight if there are more than one option even when only one option is visible at any point.


Any solution or idea?

Javier

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: 11/22/15, 9:06 AM
Seen: 357 times
Last updated: 11/22/15, 9:06 AM