[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:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user