Hello community, i'm trying to change the default color in a sale order line in my custom module.
i'm trying with this approach but this didn't work :(
<record id="view_order_form_inherit" model="ir.ui.view">
<field name="name">sale.form.inherit</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<data>
<tree position="attributes">
<attribute name="colors">red:state='draft'</attribute>
</tree>
</data>
</field>
</record>