Base report csv
report_csv · OCA/reporting-engine
Health
90/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by15/251 module depends on it
-
Maturity25/25In 10 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
3 models
1 view
2 HTTP endpoints
Description
This module provides a basic report class to generate csv report.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- l10n_es_aeat_mod592
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
act_report_xml_view |
ir.actions.report | ir.actions.report | Inherits base.act_report_xml_view |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | ReportController.report_download |
inherited | http | ALL | |
| (inherited route override) | ReportController.report_routes |
inherited | http | ALL |
Models touched 3
New fields (3)
-
encode_error_handlingSelectionhelp='If nothing is selected, CSV export will fail with an error message when there is a character that fail to be encoded.'selection=[('ignore', 'Ignore'), ('replace', 'Replace')] -
encodingCharhelp='Encoding to be applied to the generated CSV file. e.g. cp932' -
report_typeSelectionondelete={'csv': 'set default'}selection_add=[('csv', 'csv')]
No public methods.
New fields (0)
No new fields.
Public methods (3)-
create_csv_report(self, docids, data) -
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'. -
generate_csv_report(self, file, data, objs)
New fields (0)
No new fields.
Public methods (2)-
csv_report_options(self) -
generate_csv_report(self, writer, data, partners)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…