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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
0
जन॰ 20
|
160 | ||
|
|
2
अप्रैल 24
|
4038 | ||
|
|
1
जुल॰ 24
|
2475 | ||
|
|
1
जन॰ 24
|
4767 | ||
|
|
3
जन॰ 24
|
15096 |