`report_journal_ledger` is auto-vacuumed as any transient model, but has some ondelete="cascade" constraints that auto-remove subtables when a record is removed, doing this operation very slow when selecting these sub-records. Letting default ondelete="set null" would result in same performance bottleneck, as the select on sub-table is performed the same for setting "null" value on them. As a solution, and for avoiding a costly index operation, we delete by SQL sub-tables rows in advance. A bit of extra logic has been added for avoiding to remove that records if it's not the turn of vacuum the parent table.
51 lines
1.6 KiB
Python
51 lines
1.6 KiB
Python
# Author: Damien Crier
|
|
# Author: Julien Coux
|
|
# Copyright 2016 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
{
|
|
'name': 'Account Financial Reports',
|
|
'version': '12.0.1.2.2',
|
|
'category': 'Reporting',
|
|
'summary': 'OCA Financial Reports',
|
|
'author': 'Camptocamp SA,'
|
|
'initOS GmbH,'
|
|
'redCOR AG,'
|
|
'Eficent,'
|
|
'Odoo Community Association (OCA)',
|
|
"website": "https://odoo-community.org/",
|
|
'depends': [
|
|
'account',
|
|
'date_range',
|
|
'report_xlsx',
|
|
],
|
|
'data': [
|
|
'wizard/aged_partner_balance_wizard_view.xml',
|
|
'wizard/general_ledger_wizard_view.xml',
|
|
'wizard/journal_ledger_wizard_view.xml',
|
|
'wizard/open_items_wizard_view.xml',
|
|
'wizard/trial_balance_wizard_view.xml',
|
|
'wizard/vat_report_wizard_view.xml',
|
|
'menuitems.xml',
|
|
'reports.xml',
|
|
'report/templates/layouts.xml',
|
|
'report/templates/aged_partner_balance.xml',
|
|
'report/templates/general_ledger.xml',
|
|
'report/templates/journal_ledger.xml',
|
|
'report/templates/open_items.xml',
|
|
'report/templates/trial_balance.xml',
|
|
'report/templates/vat_report.xml',
|
|
'view/account_view.xml',
|
|
'view/report_template.xml',
|
|
'view/report_general_ledger.xml',
|
|
'view/report_journal_ledger.xml',
|
|
'view/report_trial_balance.xml',
|
|
'view/report_open_items.xml',
|
|
'view/report_aged_partner_balance.xml',
|
|
'view/report_vat_report.xml',
|
|
],
|
|
'installable': True,
|
|
'application': True,
|
|
'auto_install': False,
|
|
'license': 'AGPL-3',
|
|
}
|