mirror of https://github.com/OCA/web.git
[FIX] web_favicon: Fix when having more than one company and one of them don't have a favicon set
parent
3e7301bb22
commit
d5262ce8be
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue