From bdf94724072de11f47fba8a7aa86d05760a24b2e Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Tue, 2 Jul 2024 09:58:37 +0200 Subject: [PATCH] T1524 Always update partner picture with Musk reg photo --- website_event_compassion/models/event_registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_event_compassion/models/event_registration.py b/website_event_compassion/models/event_registration.py index c2ccf58..d40ebb1 100644 --- a/website_event_compassion/models/event_registration.py +++ b/website_event_compassion/models/event_registration.py @@ -435,7 +435,7 @@ def write(self, vals): def create(self, vals_list): record = super().create(vals_list) for registration in record: - if registration.profile_picture and not registration.partner_id.image_1920: + if registration.profile_picture: registration.partner_id.image_1920 = registration.profile_picture if not registration.profile_name: registration.profile_name = registration.partner_id.preferred_name