Skip to Content
मेन्यू
This question has been flagged
3885 Views

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
Discard
Related Posts Replies Views Activity
3
सित॰ 22
7203
1
अग॰ 22
4763
3
मार्च 21
2041
5
फ़र॰ 20
12054
2
फ़र॰ 19
2821