Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4255 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Sep 22
7670
1
Agu 22
5310
3
Mar 21
2383
5
Feb 20
12614
2
Feb 19
3107