Skip to content

Commit

Permalink
T1524 Always update partner picture with Musk reg photo
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Jul 2, 2024
1 parent 8b1ae9f commit bdf9472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_event_compassion/models/event_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdf9472

Please sign in to comment.