Skip to Content
Menú
This question has been flagged
3863 Vistes

I have created a binary field in my application and uploaded an xls file..  when downloading the file by clicking the binary field, the downloaded file extension is correct.. But when i download same file from the binary field using my code, it downloads with out any extension..
my code is :
return{
            'type' : 'ir.actions.act_url',
            'url' : '/web/content?model=res.company&field=my_binary_field&filename_field=my_file_name_field&id=' + str(company_id.id),
            'target': 'self',
        }
please help me to resolve

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
de set. 22
7156
1
d’ag. 22
4703
3
de març 21
2018
5
de febr. 20
11999
2
de febr. 19
2801