Refactor: Standardize account report line ID generation using _get_generic_line_id.
This commit is contained in:
parent
593ae621b3
commit
8b0d8a7345
@ -116,7 +116,7 @@ class AccountReport(models.Model):
|
||||
continue
|
||||
|
||||
new_line = {
|
||||
'id': f'account.account_{account.id}',
|
||||
'id': self._get_generic_line_id('account.account', account.id, parent_line_id=line_template.get('parent_id')),
|
||||
'name': f'{account.code} {account.name}',
|
||||
'columns': zero_columns,
|
||||
'level': line_template.get('level', 2),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user