Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3763 Zobrazení

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
zář 22
6988
1
srp 22
4552
3
bře 21
1904
5
úno 20
11853
2
úno 19
2691