[FIX] incorrect check for users to send notification

This commit is contained in:
iTecan 2024-04-08 10:38:55 +02:00 committed by GitHub
parent 50e124b676
commit 41747d7683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ class DocumentPageHistory(models.Model):
users = self.env["res.users"].search(
[("groups_id", "in", guids), ("groups_id", "in", approver_gid.id)]
)
rec.message_subscribe([u.id for u in users])
rec.message_subscribe([u.id for u in users.partner_id])
rec.message_post_with_template(template.id)
else:
# auto-approve if approval is not required