Hi,
In the XML code you provided, there is a spacing issue in the attrs attribute value for the invisible attribute. There is an extra space before and after the autre_id field name, which causes the attribute to not work as expected.
To fix the issue, you can remove the extra spaces in the attribute value as follows:
<field name="autre_id" attrs="{'invisible': [('autre_id', '=',False)]}"/>
That might be the Issue you are facing.
If u still having the Issue these are the ways you hide a field using XML
1. To hide a field using XML view, you can add the "invisible" attribute to the field and set it to "1". This will hide the field in the view.
For example:
<field name="autre_id" attrs="{'invisible': [('autre_id', '=',False)]}"/>
2. Another Way, To hide a field using groups, first, you need to define a group by creating a record for it in the "res.groups" model. For example:
<record id="my_module.my_group" model="res.groups"> <field name="name">My Group</field> </record>
Then, you can add the group to the field's access rights using the "groups" attribute. For example:
<field name="my_field" groups="my_module.my_group"/>
Regards