[IMP] account_financial_report: pre-commit auto fixes

This commit is contained in:
Henrik Norlin
2024-01-24 12:12:00 +01:00
committed by chaule97
parent f202a3396a
commit 0b128f03ee
21 changed files with 171 additions and 177 deletions

View File

@@ -33,9 +33,7 @@ class AccountGroup(models.Model):
"""Forms complete name of location from parent location to child location."""
for group in self:
if group.parent_id.complete_name:
group.complete_name = "{}/{}".format(
group.parent_id.complete_name, group.name
)
group.complete_name = f"{group.parent_id.complete_name}/{group.name}"
else:
group.complete_name = group.name