跳至內容
選單
此問題已被標幟
2 回覆
1625 瀏覽次數

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
30811
2
6月 23
2692
1
12月 24
1557
2
1月 24
3514
2
1月 24
2376