mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[FIX] document_page_approval: Add correct followers in history pages
[BOT] post-merge updates
This commit is contained in:
committed by
Bhavesh Heliconia
parent
72b41d914d
commit
279891c8f4
@@ -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(partner_ids=users.mapped("partner_id").ids)
|
||||
rec.message_post_with_template(template.id)
|
||||
else:
|
||||
# auto-approve if approval is not required
|
||||
|
||||
Reference in New Issue
Block a user