mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP]encode output file
This commit is contained in:
committed by
Sander Lienaerts
parent
96ed1f9d7d
commit
ff0900ca7b
@@ -89,7 +89,8 @@ class SqlFileWizard(models.TransientModel):
|
||||
res = sql_export._execute_sql_request(
|
||||
params=variable_dict, mode='stdout',
|
||||
copy_options=sql_export.copy_options)
|
||||
|
||||
if self.sql_export_id.encoding:
|
||||
res = res.encode(self.sql_export_id.encoding)
|
||||
self.write({
|
||||
'binary_file': res,
|
||||
'file_name': sql_export.name + '_' + date + '.csv'
|
||||
|
||||
Reference in New Issue
Block a user