I need to be able to turn a field invisible depending on the state of the product. I added this code to product.product and when the product state is 'draft' it turns readonly automatically, but the field never becomes invisible.
Is there anyone who can explain why or what I can do to display a field only on certain conditions? <field name="ean13" attrs="{'readonly':[('state','=','draft'')], 'invisible'[('state','=','draft'')]}" select="2"/> ------------------------ Leigh Willard, TINYatWORK http://www.tinyatwork.com/ -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=47944#47944 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
