Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1631 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
4
груд. 24
30828
2
черв. 23
2715
1
груд. 24
1564
2
січ. 24
3520
2
січ. 24
2379