Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3735 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
sep. 22
6970
1
aug. 22
4532
3
mrt. 21
1889
5
feb. 20
11817
2
feb. 19
2678