Skip to content

Commit

Permalink
FIX missing assignation in compute method
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Aug 22, 2024
1 parent 4d2cab6 commit f13fe84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions child_compassion/models/child_compassion.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ def _compute_portrait(self):
for child in self:
if child.pictures_ids:
child.portrait = child.pictures_ids.sorted()[:1].headshot
else:
child.portrait = False

@api.depends("pictures_ids")
def _compute_fullshot(self):
Expand Down

0 comments on commit f13fe84

Please sign in to comment.