My py function returns a action url after that my button disables.Open erp adds an attribute disable="disable" to my button . I dnt want to disable button.Please help?
My code is
<button name="play_file" type="object" string="Play or download" />
def play_file(self, cr, uid, ids, context=None):
res = self.read(cr, uid, ids, ['file_name'], context=context)
file_name = res[0]['file_name']
return{
'type': 'ir.actions.act_url',
'url':'ftp://test.claudion.com:123/'+file_name,
# 'target': 'new',
}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
4747
Widoki
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się