Merge PR #2852 into 17.0

Signed-off-by pedrobaeza
pull/2871/head
OCA-git-bot 2024-06-18 09:11:30 +00:00
commit 10e3f883c8
1 changed files with 1 additions and 1 deletions

View File

@ -82,6 +82,6 @@ class ResCompany(models.Model):
sha = hashlib.sha512(str(company.write_date).encode("utf-8")).hexdigest()[ sha = hashlib.sha512(str(company.write_date).encode("utf-8")).hexdigest()[
:7 :7
] ]
return f"/web/image/{self._name}/{company_id}/favicon?unique={sha}" return f"/web/image/{self._name}/{company.id}/favicon?unique={sha}"
else: else:
return False return False