I have a one2many line and contains many2many fields of widget type many2may_tags. So in my view, I need to make invisible according to a many2one field using the attrs-{'invisible': Domain}. What happening is the field becomes invisible and the field name remains there. Whether guys you have any solution to make invisible the field name and its space too?
<field name="One2manyfield">
<tree>
<field name="many2one_field"/>
<field name="many2manyfield" widget="many2many_tags" attrs="{'invisible': [('many2one_field', '=', one of values in many2one model)]}"/>
</tree>
</field>