From fffe4dfed61cefc7150b7b9a3b1c88bdc0c7f4c5 Mon Sep 17 00:00:00 2001 From: Abdurrahman Saber Date: Mon, 22 Sep 2025 14:19:09 +0300 Subject: [PATCH] [FIX] account_chart_of_account: type error --- .../account_chart_of_accounts/reports/account_report_coa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_accounting/account_chart_of_accounts/reports/account_report_coa.py b/odex25_accounting/account_chart_of_accounts/reports/account_report_coa.py index dd75ec958..c504dbfa8 100644 --- a/odex25_accounting/account_chart_of_accounts/reports/account_report_coa.py +++ b/odex25_accounting/account_chart_of_accounts/reports/account_report_coa.py @@ -322,7 +322,7 @@ class AccountChartOfAccountReport(models.AbstractModel): # Add lines. for y in range(0, len(lines)): - level = lines[y].get('level') + level = lines[y].get('level') or 1 if lines[y].get('caret_options'): style = workbook.add_format({'font_name': 'Arial', 'font_size': 12, 'font_color': '#666666'}) col1_style = workbook.add_format({'font_name': 'Arial', 'font_size': 12, 'font_color': '#666666', 'indent': level - 1})