[IMP] report_csv: use dialects

This commit is contained in:
Jordi Ballester Alomar
2019-02-05 17:36:12 +01:00
committed by Enric Tobella
parent 689c6c2a6d
commit cd3816bcc5
4 changed files with 25 additions and 9 deletions

View File

@@ -48,6 +48,12 @@ class ReportCSVAbstract(models.AbstractModel):
return file_data.read(), 'csv'
def csv_report_options(self):
"""
:return: dictionary of parameters. At least return 'fieldnames', but
you can optionally return parameters that define the export format.
Valid parameters include 'delimiter', 'quotechar', 'escapechar',
'doublequote', 'skipinitialspace', 'lineterminator', 'quoting'.
"""
return {'fieldnames': []}
def generate_csv_report(self, file, data, objs):