Skip to Content
Menú
This question has been flagged
1 Respondre
2425 Vistes

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
Best Answer

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.

Related Posts Respostes Vistes Activitat
0
de gen. 20
160
2
d’abr. 24
3300
1
de jul. 24
1823
1
de gen. 24
3243
3
de gen. 24
14314