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 f13fe84 commit 37bb7c4
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 @@ -67,7 +67,8 @@ def _compute_nb_translated_letters_last_year(self):
for translator in self:
translator.nb_translated_letters_last_year = len(
translator.translated_letter_ids.filtered(
lambda it: it.translate_date.year == fields.Datetime.now().year - 1
lambda it: it.translate_date and
it.translate_date.year == fields.Datetime.now().year - 1
)
)

Expand Down

0 comments on commit 37bb7c4

Please sign in to comment.