コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2442 ビュー

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
3316
1
7月 24
1848
1
1月 24
3264
3
1月 24
14333