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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
3741
Görünümler
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
3
Eyl 22
|
6975 | ||
|
1
Ağu 22
|
4534 | ||
|
3
Mar 21
|
1892 | ||
|
5
Şub 20
|
11833 | ||
|
2
Şub 19
|
2679 |