From 031564b76f4bc71742f85185afe23dada2e22901 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Sun, 28 Jul 2024 12:24:30 +0200 Subject: [PATCH] [FIX] website: also use company logo when website.logo is False --- addons/website/migrations/13.0.1.0/post-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/migrations/13.0.1.0/post-migration.py b/addons/website/migrations/13.0.1.0/post-migration.py index 323c62a03c33..2cf796974043 100644 --- a/addons/website/migrations/13.0.1.0/post-migration.py +++ b/addons/website/migrations/13.0.1.0/post-migration.py @@ -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