mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 21:32:18 -06:00
[FIX] document_page_approval: Add correct followers in history pages
This commit is contained in:
@@ -85,7 +85,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