mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] report_csv: use dialects
This commit is contained in:
committed by
Enric Tobella
parent
689c6c2a6d
commit
cd3816bcc5
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user