Account Export CSV
account_export_csv · OCA/account-financial-reporting
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 41 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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.1 MB
Module directory on disk
Code analysis
1 migration note
1 model
1 view
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_csv_export SET data = %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
Dependencies
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 |
|---|---|---|---|---|
account_csv_export_view |
Accounting Entries CSV Export | account.csv.export | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (7)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>invisible=Truestring='Company' -
dataBinaryreadonly=True args: 'CSV' -
date_endDaterequired=True -
date_range_idMany2one → date.rangecomodel_name='date.range'string='Date range' -
date_startDaterequired=True -
export_filenameChardefault='account_export.csv'size=128string='Export CSV Filename' -
journal_idsMany2many → account.journalcomodel_name='account.journal'default=<expr>help='If empty, use all journals, only used for journal entries'string='Journals'
-
action_manual_export_account(self) -
action_manual_export_analytic(self) -
action_manual_export_journal_entries(self)Here we use TemporaryFile to avoid full filling the Odoo worker Memory We also write the data to the wizard with SQL query as write seems to use too much memory as well. Those improvements permitted to improve the export from a 100k line to 200k lines with default `limit_memory_hard = 805306368` (768MB) with more lines, you might encounter a MemoryError when trying to download the file even if it has been generated. To be able to export bigger volume of data, it is advised to set limit_memory_hard to 2097152000 (2 GB) to generate the file and let Odoo load it in the wizard when trying to download it. Tested with up to a generation of 700k entry lines
Loading…
Loading…
Loading…
Loading…
Loading…