Skip to Content
Menu
This question has been flagged
2 Replies
2665 Views

Hello,

I want to ask if it's possible in Odoo 10 to have a regular input field in which the stored value is never visible. I mean, you can insert a new value normally but can't see the one previously saved.

Defining the field as a password is not enough because it's easy to reveal through any browser's debug/inspect mode.

Thanks in advance.

EDIT: Thanks for the answers. In the end I solved it this way:

- A field where I store the value, which isn't visible in the form

- A visible field where I add the value, with the property store=False, and a function onchange that affects the first field.

Avatar
Discard
Best Answer

presumably you want the field visible in a new record create but not visible in an existing record edit.

If there is a field that is always set once the record is created (like  a state field) you could just make the field invisible on the form if state = x

Avatar
Discard
Best Answer

i don't get the your idea  clearly but may be this can help you

create ir.rules have force domain= [('1','=','2')]
and perm_read=1

and perm_create=0

Avatar
Discard