Colcor for Work order gant view

Hi

It seems Work order does not have a “color” field. I searched around how to add a color field so that

Gant Chart can have some color for the Work Order “bars” and I found this…..

Log into your ERPNext instance as an Administrator.Search for Customize Form in the Awesomebar.Select Work Order in the Enter Form Type field.Scroll down to the fields table and add a new row:Label: ColorName: color (This exact lowercase fieldname is mandatory)Type: ColorCheck the In List View option.Click Save and reload your browser window (Ctrl + F5 or Cmd + Shift + R).

But this does not work and I assume its because Frappe adds “custom_” to any custom fields. And the Gant

rendered more than likely is looking for a field name “color” ( not “custom_color”)

Another way wold be to , instead of changing the color of the bars of blocks in gant-view, is to change to color of the backgound. Then the blosk / bars will be more visible even if they remain white ?

Any suggestions please of how I can change the background color in Gant-view ?

@trainingacademy

The (somewhat) clean way is to ship the field from a custom app as a fixture. There you set the fieldname yourself, so you can keep it exactly color, which matters because the Gantt view only reads a field literally named color. Anything added through Customize Form comes out as custom_color, which it just ignores.

The catch is you need a custom app to put it in, which is a fair bit of setup if you don’t already run one.

It is deffenetly a annoying limitation of Frappe.

1 Like