How to show color widget field in a tree view?

Hi,

I’ve managed to show a field with color widget in a form view, I would like to show the field in a list view, I can show the hex value, but as soon as a add the attribute widget="color", the list does not load.

<?xml version="1.0"?>
<tree sequence="sequence" editable="1">
    <field name="sequence"/>
    <field name="yarn" expand="1"/>
    <!-- <field name="yarn_color" widget="color"/> -->
    <field name="yarn_color"  />
    <field name="weft_count" expand="1"/>
</tree>

Currently, the widget=“color” attribute is supported in form views, but it does not work in tree (list) views in Tryton. That’s why the list view fails to load.
If you need to visually represent the color in a list, you might consider using the icon or visual attributes to provide some visual context.
FTR Views — Tryton server.

visual

A PYSON statement that is evaluated as string muted, success, warning or danger with the context of the record to provide a visual context to the row.,

This has 4 colors, I have an extended requirement of this, where I can convert hex into showing a color in a tree view.

You can use the image widget with the type color.

Like this you mean ?

<field name="yarn_color" widget="image" type="color"  />