When there are a lot of account.move.line (several millions) and print any of the Qweb reports, that will generate also a lot of transient objects. As these objects are created with an "insert" query, the cleaning normally triggered by the count of the records in transient tables is not done, so only the cleaning based on the age of the records is processed (by default, records older than 1 hours are deleted), but the cron task is only ran one time per day. For large setups this can lead to memory errors at that point. This change prevents the memory error by executing the transient record cleanup for the report models in this module in SQL.
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': '11.0.2.2.1',
|
|
'category': 'Reporting',
|
|
'summary': 'OCA Financial Reports',
|
|
'author': 'Camptocamp SA,'
|
|
'initOS GmbH,'
|
|
'redCOR AG,'
|
|
'Odoo Community Association (OCA)',
|
|
"website": "https://odoo-community.org/",
|
|
'depends': [
|
|
'account',
|
|
'account_invoicing',
|
|
'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',
|
|
}
|