SQL Export
sql_export · OCA/reporting-engine
OCA/server-tools 7.0–14.0 → OCA/reporting-engine 15.0–18.0
-
Security25/25No findings
-
Activity12/25Last human commit 14 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 10 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE sql_export SET last_execution_date = %s, last_execution_uid = %s WHERE id = %s` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Allow to export data in csv files FROM sql requests. There are some restrictions in the sql query, you can only read datas. No update, deletion or creation are possible. A new sub menu named Sql Export is available in the Dashboard main menu.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- sql_export_delta, sql_export_excel, sql_export_mail
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
sql_export_view_form |
sql.export | form | Inherits sql_request_abstract.view_sql_request_mixin_form | |
sql_export_view_tree |
sql.export | tree | Inherits sql_request_abstract.view_sql_request_mixin_tree | |
sql_file_wizard_view_form |
sql.file.wizard.view.form | sql.file.wizard | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
copy_optionsChardefault="CSV HEADER DELIMITER ';'"required=False -
encodingSelectiondefault='utf-8'required=True args: [('utf-8', 'utf-8'), ('utf-16', 'utf-16'), ('windows-1252', 'windows-1252'), ('latin1', 'latin1'), ('latin2', 'latin2'), ('big5', 'big5'), ('gb18030', 'gb18030'), ('shift_jis', 'shift_jis'), ('windows-1251', 'windows-1251'), ('koir8_r', 'koir8_r')] -
file_formatSelectiondefault='csv'required=True args: [('csv', 'CSV')] -
last_execution_dateDatetimereadonly=True -
last_execution_uidMany2one → res.usersreadonly=Truestring='Last execution User' args: 'res.users' -
query_properties_definitionPropertiesDefinitionargs: 'Query Properties' -
use_propertiesBooleancompute='_compute_use_properties'
-
configure_properties(self) -
csv_get_data_from_query(self, variable_dict) -
export_sql_query(self)
-
binary_fileBinaryreadonly=True args: 'File' -
file_nameCharreadonly=True -
query_propertiesPropertiescopy=Falsedefinition='sql_export_id.query_properties_definition'string='Properties' -
sql_export_idMany2one → sql.exportcomodel_name='sql.export'required=True
-
export_sql(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…