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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
4319
화면
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
3
9월 22
|
7733 | ||
|
1
8월 22
|
5368 | ||
|
3
3월 21
|
2432 | ||
|
5
2월 20
|
12681 | ||
|
2
2월 19
|
3168 |