コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
1616 ビュー

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.

アバター
破棄
最善の回答

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

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
4
12月 24
30806
2
6月 23
2673
1
12月 24
1547
2
1月 24
3510
2
1月 24
2371