Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2524 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 20
160
2
thg 4 24
3387
1
thg 7 24
1911
1
thg 1 24
3605
3
thg 1 24
14441