Skip to Content
Menu
This question has been flagged
4543 Views

Is it possible to change the icon on a button field in a view depending on the value of another filed.

<xpath expr="//tree/field[@name='name']" position="after">
<button icon="fa-file-text-o" name="action_edit_note" type="object"
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
</xpath>
Avatar
Discard
Related Posts Replies Views Activity
1
Mar 15
4786
4
Jan 24
20583
2
Jan 24
773
0
Aug 23
951
2
Mar 23
7961