[FIX] account_chart_of_account: type error

This commit is contained in:
Abdurrahman Saber 2025-09-22 14:19:09 +03:00
parent 24512280b8
commit fffe4dfed6
1 changed files with 1 additions and 1 deletions

View File

@ -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})