跳至内容
菜单
此问题已终结
1 回复
2399 查看

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
1月 20
160
2
4月 24
3283
1
7月 24
1816
1
1月 24
3208
3
1月 24
14282