Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2404 Vistas

Hello, how can I show a button but after the user has saved a file in an attachment? and that if the user deletes the file, the button is hidden again?

thanks for the help

Avatar
Descartar
Mejor respuesta

Hello Learning_Odoo,

You can add condition like below for visibility of the button:

attrs={'invisible':[('attachment_id', '=', False)]}

I hope This will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Descartar
Autor

It didn't work, but I appreciate your help. In the end I had to make a Boolean field based on the attachment and put a computed function on it.

Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 20
160
2
abr 24
3287
1
jul 24
1819
1
ene 24
3212
3
ene 24
14286