Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
2092 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
4
Des 24
31796
2
Jun 23
3202
1
Agu 25
3451
1
Des 24
2164
2
Jan 24
4211