Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 10 Odoo series since 10.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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
odoo/odoo:
- web
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 IDNameModelTypeStatus
act_report_xml_view ir.actions.report ir.actions.report Inherits base.act_report_xml_view

HTTP endpoints 2

Route(s)HandlerAuthTypeMethodsFlags
(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_handling Selection
    help='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')]
  • encoding Char
    help='Encoding to be applied to the generated CSV file. e.g. cp932'
  • report_type Selection
    ondelete={'csv': 'set default'} selection_add=[('csv', 'csv')]
Public methods (0)

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…