İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2542 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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.

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Oca 20
160
2
Nis 24
3397
1
Tem 24
1917
1
Oca 24
3618
3
Oca 24
14450