Merge pull request #4730 from expsa/LIT-3757

[FIX] account_chart_of_account: type error
This commit is contained in:
abdurrahman-saber 2025-09-22 14:21:04 +03:00 committed by GitHub
commit d0c4485c25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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})