跳至內容
選單
此問題已被標幟
3852 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
9月 22
7146
1
8月 22
4697
3
3月 21
2005
5
2月 20
11989
2
2月 19
2796