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, 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.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
0
sty 20
|
160 | |||
|
How to hide button Favorites in odoo 16?
Rozwiązane
|
2
kwi 24
|
5162 | ||
|
1
mar 26
|
6842 | |||
|
1
lip 24
|
3771 | |||
|
3
sty 24
|
16332 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.