From 3c5d1ceb6827a642f9fba1faef3f4ea68863fb41 Mon Sep 17 00:00:00 2001 From: bosd Date: Sun, 22 Oct 2023 23:00:15 +0200 Subject: [PATCH] [IMP] base_tier_validation: use sudo to post 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 68e8d49d2f..eeea4ba10f 100644 --- a/base_tier_validation/models/tier_validation.py +++ b/base_tier_validation/models/tier_validation.py @@ -408,7 +408,7 @@ def _notify_review_requested(self, tier_reviews): subscribe = "message_subscribe" post = "message_post" if hasattr(self, post) and hasattr(self, subscribe): - for rec in self: + for rec in self.sudo(): users_to_notify = tier_reviews.filtered( lambda r: r.definition_id.notify_on_create and r.res_id == rec.id ).mapped("reviewer_ids")