From 5e769f4b3988b71088c604eb062cf4675a3a81b3 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Mon, 9 Mar 2026 18:10:10 +0100 Subject: [PATCH] fix: 19.0 compatibility for accounting_pdf_reports, om_account_budget, om_recurring_payments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Convert attrs dict to inline attributes (invisible/readonly/required) - Convert states attribute to invisible conditions - Remove deprecated numbercall from ir.cron - Remove deprecated domain from account.budget.post - Fix group assignments in security XML - Fix search view group-by references 🤖 assisted by claude --- .../views/financial_report.xml | 16 +++---- .../wizard/balance_sheet.xml | 12 +++--- .../wizard/partner_ledger.xml | 19 +-------- .../models/account_budget.py | 3 +- .../security/account_budget_security.xml | 8 +--- .../views/account_budget_views.xml | 42 +++++++++---------- .../data/recurring_cron.xml | 1 - .../views/recurring_payment_view.xml | 8 ++-- .../views/recurring_template_view.xml | 4 +- 9 files changed, 44 insertions(+), 69 deletions(-) diff --git a/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/views/financial_report.xml b/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/views/financial_report.xml index 43f7f94..8133943 100644 --- a/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/views/financial_report.xml +++ b/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/views/financial_report.xml @@ -22,15 +22,15 @@ + invisible="type not in ('accounts', 'account_type', 'account_report')"> + invisible="type not in ('accounts', 'account_type')"/> + invisible="type != 'account_report'"/> - - + + @@ -64,10 +64,10 @@ - - + - + diff --git a/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/wizard/balance_sheet.xml b/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/wizard/balance_sheet.xml index 79c2ca5..491efe8 100644 --- a/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/wizard/balance_sheet.xml +++ b/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/wizard/balance_sheet.xml @@ -78,18 +78,18 @@ - + - + - + - - - + + + diff --git a/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/wizard/partner_ledger.xml b/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/wizard/partner_ledger.xml index db7e412..1900b4e 100644 --- a/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/wizard/partner_ledger.xml +++ b/odoo-bringout-odoomates-accounting_pdf_reports/accounting_pdf_reports/wizard/partner_ledger.xml @@ -40,23 +40,6 @@ action="action_account_partner_ledger_menu" groups="account.group_account_invoice"/> - - - Balance Statement (Partner Ledger) - account.report.partner.ledger - form - - new - - report - { - 'default_partner_ids':active_ids, - 'default_target_move': 'posted', - 'default_result_selection': 'customer_supplier', - 'default_reconciled': True, - 'hide_partner':1, - } - - + diff --git a/odoo-bringout-odoomates-om_account_budget/om_account_budget/models/account_budget.py b/odoo-bringout-odoomates-om_account_budget/om_account_budget/models/account_budget.py index d72c622..43fedfc 100644 --- a/odoo-bringout-odoomates-om_account_budget/om_account_budget/models/account_budget.py +++ b/odoo-bringout-odoomates-om_account_budget/om_account_budget/models/account_budget.py @@ -13,8 +13,7 @@ class AccountBudgetPost(models.Model): _description = "Budgetary Position" name = fields.Char('Name', required=True) - account_ids = fields.Many2many('account.account', 'account_budget_rel', 'budget_id', 'account_id', 'Accounts', - domain=[('deprecated', '=', False)]) + account_ids = fields.Many2many('account.account', 'account_budget_rel', 'budget_id', 'account_id', 'Accounts') company_id = fields.Many2one('res.company', 'Company', required=True, default=lambda self: self.env.company) def _check_account_ids(self, vals): diff --git a/odoo-bringout-odoomates-om_account_budget/om_account_budget/security/account_budget_security.xml b/odoo-bringout-odoomates-om_account_budget/om_account_budget/security/account_budget_security.xml index 8483fe3..5b07741 100644 --- a/odoo-bringout-odoomates-om_account_budget/om_account_budget/security/account_budget_security.xml +++ b/odoo-bringout-odoomates-om_account_budget/om_account_budget/security/account_budget_security.xml @@ -23,13 +23,7 @@ ['|',('company_id','=',False),('company_id', 'in', company_ids)] - - - - - - - + diff --git a/odoo-bringout-odoomates-om_account_budget/om_account_budget/views/account_budget_views.xml b/odoo-bringout-odoomates-om_account_budget/om_account_budget/views/account_budget_views.xml index 7d3fef1..ba9511d 100644 --- a/odoo-bringout-odoomates-om_account_budget/om_account_budget/views/account_budget_views.xml +++ b/odoo-bringout-odoomates-om_account_budget/om_account_budget/views/account_budget_views.xml @@ -65,34 +65,34 @@
-
- +
diff --git a/odoo-bringout-odoomates-om_recurring_payments/om_recurring_payments/data/recurring_cron.xml b/odoo-bringout-odoomates-om_recurring_payments/om_recurring_payments/data/recurring_cron.xml index e810db0..1bfeeb8 100644 --- a/odoo-bringout-odoomates-om_recurring_payments/om_recurring_payments/data/recurring_cron.xml +++ b/odoo-bringout-odoomates-om_recurring_payments/om_recurring_payments/data/recurring_cron.xml @@ -10,7 +10,6 @@ model.action_generate_payment() 1 days - -1 diff --git a/odoo-bringout-odoomates-om_recurring_payments/om_recurring_payments/views/recurring_payment_view.xml b/odoo-bringout-odoomates-om_recurring_payments/om_recurring_payments/views/recurring_payment_view.xml index b4d1d87..c7c2c1e 100644 --- a/odoo-bringout-odoomates-om_recurring_payments/om_recurring_payments/views/recurring_payment_view.xml +++ b/odoo-bringout-odoomates-om_recurring_payments/om_recurring_payments/views/recurring_payment_view.xml @@ -7,9 +7,9 @@
-
@@ -17,7 +17,7 @@

- +

@@ -50,7 +50,7 @@