Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mis_builder/models/kpimatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ def _load_account_names(self):
self._account_names = {a.id: self._get_account_name(a) for a in accounts}

def _get_account_name(self, account):
result = f"{account.code} {account.name}"
code = account.code or account.placeholder_code.split(" (")[0]
result = f"{code} {account.name}"
if self._multi_company:
result = f"{result} [{account.company_id.name}]"
return result
Expand Down
Loading