Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3871 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Sept. 22
7170
1
Aug. 22
4711
3
März 21
2026
5
Feb. 20
12011
2
Feb. 19
2809