On 2015-07-02 21:03, Raimon Esteve wrote:
> I tested current development version about colors in tree view:
>
> <tree string="Statement of Account"
> colors="If(Bool(Eval('reconciliation')), 'black', 'red')">
> .....
> </tree>
>
> When install/update module, I get XML error when install/update module.
>
> There are some changes about XML and color attribute in current
> development version?
Only encoded json is allowed in XML because we do no more evaluate
python from outside (view can be created from UI).
ModelView.view_attributes is the prefered way to manage it.
http://doc.tryton.org/3.6/trytond/doc/ref/models/models.html?highlight=view_attribute#trytond.model.ModelView.view_attributes
--
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/