Odoo Help

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 356 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
5

Ameera PP

--Ameera PP--
1206
| 5 4 7
Bangalore, India
--Ameera PP--


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)]}"/>

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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