Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1617 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
gru 24
30806
2
cze 23
2678
1
gru 24
1548
2
sty 24
3510
2
sty 24
2371