Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1591 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
pro 24
30794
2
čvn 23
2640
1
pro 24
1532
2
led 24
3506
2
led 24
2365