[FIX] web_favicon: Fix when having more than one company and one of them don't have a favicon set

pull/3013/head
Rocío Vega 2024-06-17 09:33:04 -03:00 committed by Franco Leyes
parent 0d362cf13e
commit c11424405f
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()[
:7
]
return f"/web/image/{self._name}/{company_id}/favicon?unique={sha}"
return f"/web/image/{self._name}/{company.id}/favicon?unique={sha}"
else:
return False