like its said on the title ,s their a way to hide a field if empty on the tree view but view it on the edit mode no matter if its empty or not
by the way its a many2many field and i alredy used attrs="{'invisible' :[('xxx', '=', [])]}" but the field is invisible also in the edit mode if its empty