mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 02:48:41 -06:00
[FIX] incorrect check for users to send notification
This commit is contained in:
parent
50e124b676
commit
41747d7683
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user