diff --git a/account_statement_import_file/__manifest__.py b/account_statement_import_file/__manifest__.py index 09cfa88d22..dbe3ca2399 100644 --- a/account_statement_import_file/__manifest__.py +++ b/account_statement_import_file/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Import Statement Files", "category": "Accounting", - "version": "19.0.1.0.0", + "version": "19.0.1.1.0", "license": "LGPL-3", "depends": ["account_statement_import_base"], "author": "Odoo SA, Akretion, Odoo Community Association (OCA)", diff --git a/account_statement_import_file/wizard/account_statement_import.py b/account_statement_import_file/wizard/account_statement_import.py index 7631fa1bce..92e4b644da 100644 --- a/account_statement_import_file/wizard/account_statement_import.py +++ b/account_statement_import_file/wizard/account_statement_import.py @@ -348,6 +348,9 @@ def _create_bank_statements(self, stmts_vals, result): context = st_vals.pop("creation_context", {}) # Create the statement with lines st_vals["line_ids"] = [[0, False, line] for line in st_lines_to_create] + # Skip the Enterprise synchronous PDF render on create, too heavy + # for large imports (no-op if account_accountant is not installed). + context["skip_pdf_attachment_generation"] = True statement = abs_obj.with_context(**context).create(st_vals) statement_ids.append(statement.id)