Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3844 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 22
7145
1
thg 8 22
4693
3
thg 3 21
1998
5
thg 2 20
11982
2
thg 2 19
2789