İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
1771 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
4
Ara 24
31131
2
Haz 23
2862
1
Ağu 25
2928
1
Ara 24
1777
2
Oca 24
3717