see answer Francesco Apruzzese you can't hide/show field in tree.
you can use invisible but 0 or 1 :
<field name="field_name" invisible="0" /> -- show <field name="field_name" invisible="1" /> -- hide
but if you can customize your tree you can use colors .color red if state=='failure', blue if state=='draft'...
<tree string="tree_string" colors="red:state=='failure';blue:state=='draft'">
When you have a tree view you can't hide/show field. This is normal because in a tree can be a lot of record with different datas inside. If you want hide a field in a tree in relation to status, you can have some field with state A and other with state B. What can OpenERP do in this case?
So, you request is invalid because attrs work fine in form but is not usable in tree to show/hide field.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/13/13, 5:06 AM|
|Seen: 2891 times|
|Last updated: 3/16/15, 8:10 AM|