← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 799182] Re: Colors are not applied in the Helpdesk Support Tree

 

Hello,

I have checked the above issue in trunk as well as stable all in one.

The problem is only in "close" state because in crm.py the state is like

AVAILABLE_STATES = [
    ('draft', 'Draft'),
    ('open', 'Open'),
    ('cancel', 'Cancelled'),
    ('done', 'Closed'),
    ('pending', 'Pending'),
]

So when want a different color in closed state just pass it's value like
"Done" not "close".

That's why the code like this :

                <tree string="Helpdesk Support Tree"
                    colors="black:state=='open';blue:state=='pending';gray:state in ('cancel','done')">

not                 <tree string="Helpdesk Support Tree"
                    colors="black:state=='open';blue:state=='pending';gray:state in ('cancel','close')">

So the only problem appeared in "Closed" state for more reference I have
attached a screen-shot which shows the problem.

Thanks.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/799182

Title:
  Colors are not applied in the Helpdesk Support Tree

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  Using latest AllInOneSetup OpenERP version.
  Different colors are defined in the colors property field of the <tree> node of the "Helpdesk Support Tree" view:
  black:state=='open';blue:state=='pending';gray:state in ('cancel','close')

  These colors are not applied in the web app nor the gtk one (see
  attachment)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/799182/+subscriptions


References