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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
3737
Visualizzazioni
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
3
set 22
|
6971 | ||
|
1
ago 22
|
4532 | ||
|
3
mar 21
|
1891 | ||
|
5
feb 20
|
11822 | ||
|
2
feb 19
|
2678 |