Good Day!, I've trying to Migrate my Odoo8 to 9 But I have an error in One2Many Grid Colors here's my code
<group>
<data>
<field name="employee_documents" string ="">
<tree colors = "red:expired=='EXP'">
<field name="document"/>
<field name="document_number"/>
<field name="date_issued"/>
<field name="date_expiry"/>
<field name="issuing_authority"/>
<field name="place_ofissue"/>
<field name="expired" />
</tree>
</field>
</data>
</group>
and I having an Error
Uncaught Error: QWeb2 - template['ListView.rows']: Runtime Error: Error: QWeb2 - template['ListView.row']: Runtime Error: Error: NameError: name 'expired' is not defined
I found out the colors attribute is causing the error because when I remove it my grid is not causing an Error,
Is there new way in Odoo 9 to do this thanks