From 9ee6e67db73129c60797aaf9733d8f5b99fd75dd Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 2 Dec 2024 04:44:17 -0500 Subject: [PATCH] [FIX] base_tier_validation: last comment instead of first comment - With multiple approbation, the first comment is repeated into mail.message and propagate wrong message --- base_tier_validation/models/tier_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_tier_validation/models/tier_validation.py b/base_tier_validation/models/tier_validation.py index 54b2a7de26..b8fc9a1b4a 100644 --- a/base_tier_validation/models/tier_validation.py +++ b/base_tier_validation/models/tier_validation.py @@ -485,7 +485,7 @@ def _notify_accepted_reviews_body(self): lambda r: (self.env.user in r.reviewer_ids) and r.comment ) if has_comment: - comment = has_comment.mapped("comment")[0] + comment = has_comment.mapped("comment")[-1] return _("A review was accepted. (%s)") % comment return _("A review was accepted")