From 348f7abe95889bb7cf48194b914b093fadce0448 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Mon, 9 Mar 2026 17:02:21 +0100 Subject: [PATCH] fix: update pre_init_hook signature for 19.0 (env instead of cr) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit accounting_pdf_reports: _pre_init_clean_m2m_models(cr) -> (env) 🤖 assisted by claude --- .../accounting_pdf_reports/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/__init__.py b/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/__init__.py index 7f6af0e..a25e2f1 100644 --- a/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/__init__.py +++ b/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/__init__.py @@ -6,5 +6,5 @@ from . import models from . import report -def _pre_init_clean_m2m_models(cr): - cr.execute("""DROP TABLE IF EXISTS account_journal_account_report_partner_ledger_rel""") +def _pre_init_clean_m2m_models(env): + env.cr.execute("""DROP TABLE IF EXISTS account_journal_account_report_partner_ledger_rel""")