Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1670 Vistas

Hi everyone,


I am new to Odoo and would like to censor a field in both the Odoo form and database. How can I go about censoring data on the employee form?


Could someone please provide a solution? Thanks a lot.

Avatar
Descartar
Mejor respuesta

Hi,

If you're looking to censor a field in both the Odoo form and database, you can use the invisible attribute in the Odoo XML view to hide the field on the form while keeping the data stored in the database.

<field name="censored_field" invisible="1" />


Regards

Avatar
Descartar
Mejor respuesta

Hi Dians, 

To hide it in from Odoo form, add an invisible attribute to its view, and from the database add the attribute store=False

and field = fields.Char(string="Field",store=False)


Regards

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
dic 24
30916
2
jun 23
2755
1
dic 24
1639
2
ene 24
3573
2
ene 24
2447