Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
1622 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
dec. 24
30810
2
iun. 23
2688
1
dec. 24
1548
2
ian. 24
3512
2
ian. 24
2376