Skip to content

Commit

Permalink
Merge pull request #4533 from hbrunn/13.0-website-falsy-logo
Browse files Browse the repository at this point in the history
[13.0][FIX] website: also use company logo when website.logo is False
  • Loading branch information
pedrobaeza authored Jul 30, 2024
2 parents 00aecbd + 031564b commit 2c37220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website/migrations/13.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _fill_website_logo(env):
"""
default_logo = env["website"]._default_logo()
for website in env["website"].search([]):
if website.logo == default_logo:
if not website.logo or website.logo == default_logo:
website.logo = website.company_id.logo


Expand Down

0 comments on commit 2c37220

Please sign in to comment.