Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2499 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

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.

Post Terkait Replies Tampilan Aktivitas
0
Jan 20
160
2
Apr 24
3387
1
Jul 24
1907
1
Jan 24
3387
3
Jan 24
14417