تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2482 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يناير 20
160
2
أبريل 24
3357
1
يوليو 24
1882
1
يناير 24
3341
3
يناير 24
14388