Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 21 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 6 Odoo series since 12.0

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

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 1 model 1 view 0 HTTP endpoints

Description

Add the possibility to extract data from a sql query toward an excel file. It is also possible to provide an template excel file for a query. In this case, the data will be inserted in the specified sheet of the provided excel file. This is usefull when doing a lot of calculation in excel and the data is coming from Odoo.

Dependencies

Odoo dependencies
Python dependencies
openpyxl
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
sql_export_excel_view_form sql.export form Inherits sql_export.sql_export_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (6)
  • attachment_id Many2one → ir.attachment
    help='If you configure an excel file (in xlsx format) here, the result of the query will be injected in it.\nIt is usefull to feed data in a excel file pre-configured with calculation' string='Excel Template' args: 'ir.attachment'
  • col_position Integer
    default=1 help='Indicate from which column the result of the query should be injected.' string='Column Position'
  • file_format Selection
    ondelete={'excel': 'set default'} selection_add=[('excel', 'Excel')]
  • header Boolean
    default=True help='Indicate if the header should be exported to the file.'
  • row_position Integer
    default=1 help='Indicate from which row the result of the query should be injected.'
  • sheet_position Integer
    default=1 help="Indicate the sheet's position of the excel template where the result of the sql query should be injected."
Public methods (4)
  • check_column_position(self)
    @api.constrains('col_position')
  • check_row_position(self)
    @api.constrains('row_position')
  • check_sheet_position(self)
    @api.constrains('sheet_position')
  • excel_get_data_from_query(self, variable_dict)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…