[FIX] mail: user can't edit notifications

task-2713602

closes odoo/odoo#81520

X-original-commit: 80b394568d79960b2d7aa92609975a98ff84182a
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Didier (did)
2021-12-16 15:57:43 +00:00
parent ecdf1ed6a6
commit 7213ee5527
@@ -317,8 +317,11 @@ registerModel({
if (this.tracking_value_ids.length > 0) {
return false;
}
if (this.message_type !== 'comment') {
return false;
}
if (this.originThread.model === 'mail.channel') {
return this.message_type === 'comment';
return true;
}
return this.is_note;
},