Merge pull request #4730 from expsa/LIT-3757
[FIX] account_chart_of_account: type error
This commit is contained in:
commit
d0c4485c25
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Reference in New Issue