Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2498 Näkymät

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

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

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.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
tammik. 20
160
2
huhtik. 24
3387
1
heinäk. 24
1907
1
tammik. 24
3387
3
tammik. 24
14416