Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

i have a password field ,and with a boolean field i'd like to show and hide the password, how to make it possible?

By
SREERAJ MDM
on 11/1/16, 6:10 AM 163 views

i have a password field ,and with a boolean field i'd like to show and hide the password, how to make it possible?


thanks in advance

Hello Artem ,

Thank you for the advice.

But what i ment by this is normally the password field shows characters as stars (*********) but when i check on a boolean field i need the field to show the real charector like "abcd123" ,

SREERAJ MDM
on 11/2/16, 12:29 AM
0
Artem
On 11/1/16, 1:12 PM

<field name="mypassword" attrs="{'invisible': myboolfield"/>

Does it work?

Hello Artem ,

Thank you for the advice.

But what i ment by this is normally the password field shows characters as stars (*********) but when i check on a boolean field i need the field to show the real charector like "abcd123" ,

SREERAJ MDM
on 11/2/16, 5:21 AM

Thank you Artem ,

The link you gave me solve my problem

SREERAJ MDM
on 11/4/16, 12:50 AM
3
Ameera PP
On 11/2/16, 4:55 AM

Hi Sreeraj,

Try this..

<field name="show_password"/>      

<field name="password" password="False" attrs="{'invisible': [('show_password', '=', False)]}"/>                               

<field name="password"  password="True" attrs="{'invisible': [('show_password', '=', True)]}"/>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/1/16, 6:10 AM
Seen: 163 times
Last updated: 11/4/16, 6:44 AM