From 4bc77a28d042bb2f44206d68112c9d3e57ebb2a5 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 26 Nov 2019 13:55:06 +0000 Subject: [PATCH] [FIX] account_chart_report: Add ondelete=cascade to wizard Wizards should never have `required=True` without `ondelete="cascade"`, or they forbid deletion of the referenced model. @Tecnativa TT18838 --- account_chart_report/wizard/account_report_chart_of_account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_chart_report/wizard/account_report_chart_of_account.py b/account_chart_report/wizard/account_report_chart_of_account.py index 872ac507..e284a126 100644 --- a/account_chart_report/wizard/account_report_chart_of_account.py +++ b/account_chart_report/wizard/account_report_chart_of_account.py @@ -32,6 +32,7 @@ class ChartOfAccountsReport(models.TransientModel): 'Chart of Accounts', help='Select Charts of Accounts', required=True, + ondelete="cascade", domain=([('parent_id', '=', False)])) @api.multi