HI,
I know that is not possible hide a field in tree view with attrs={"invisible":[('field_name','=',True)]}, and it is possible using: invisible attribute like this: invisible="context.get('field_name',False)", but I want to know how I can pass a field value through context from model to view, Ex:
model.py
admin_user = fields.Boolean(string="Name", default=True)
view.xml
<tree>
< field name="field_name" invisible="context.get('admin_user',False)"/>
</tree>
Any example for this question?,
Thanks