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

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
syysk. 22
7171
1
elok. 22
4715
3
maalisk. 21
2028
5
helmik. 20
12017
2
helmik. 19
2811