Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2424 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 20
160
How to hide button Favorites in odoo 16? แก้ไขแล้ว
2
เม.ย. 24
3300
1
ก.ค. 24
1823
1
ม.ค. 24
3242
3
ม.ค. 24
14314