diff --git a/addons/hr_equipment/models/hr_equipment.py b/addons/hr_equipment/models/hr_equipment.py index 0d48366224f..e542e4c50cd 100644 --- a/addons/hr_equipment/models/hr_equipment.py +++ b/addons/hr_equipment/models/hr_equipment.py @@ -182,6 +182,15 @@ class HrEquipment(models.Model): self.message_subscribe_users(user_ids=user_ids) return super(HrEquipment, self).write(vals) + @api.model + def _message_get_auto_subscribe_fields(self, updated_fields, auto_follow_fields=None): + """ mail.thread override so user_id which has no special access allowance is not + automatically subscribed. + """ + if auto_follow_fields is None: + auto_follow_fields = [] + return super(HrEquipment, self)._message_get_auto_subscribe_fields(updated_fields, auto_follow_fields) + @api.multi def _read_group_category_ids(self, domain, read_group_order=None, access_rights_uid=None): """ Read group customization in order to display all the category in the