I have created the Tree and Form type views for a small Odoo 11 module that I am creating. But there is a field, let's call it campoX that interests me only if it is not visible when I access the details of the subject: person, boat, plant, or whatever. Being that only such a field appears when you edit or create a new subject.
I have seen the invisible attribute for the view and for the model, but it is not exactly what I need, since it always obscures the X field.
Could someone put a generic example? It must be something simple, but after searching I do not find something that works for me.