Skip to content

Commit

Permalink
T1741 FIX translator assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Aug 22, 2024
1 parent 37bb7c4 commit ea401d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sbc_translation/models/translation_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def _compute_nb_translated_letters_this_year(self):
for translator in self:
translator.nb_translated_letters_this_year = len(
translator.translated_letter_ids.filtered(
lambda it: it.translate_date.year == fields.Datetime.now().year
lambda it: it.translate_date and
it.translate_date.year == fields.Datetime.now().year
)
)

Expand Down

0 comments on commit ea401d6

Please sign in to comment.