From 87c7c822868d5702a6ef2c5a85bbfb14a88af299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Wed, 6 Jul 2022 11:10:20 +0000 Subject: [PATCH] [FIX] mail: remove readonly from isSquashed There are situations where a message view is re-used in a different context where the isSquashed value has to change. For example a message being starred could be squashed in its original thread but not squashed in the starred box, leading to a crash before this fix. closes odoo/odoo#95403 Signed-off-by: Louis Wicket (wil) --- .../static/src/models/message_list_view_message_view_item.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mail/static/src/models/message_list_view_message_view_item.js b/addons/mail/static/src/models/message_list_view_message_view_item.js index 758d5c5cdfc..9ed502b8c71 100644 --- a/addons/mail/static/src/models/message_list_view_message_view_item.js +++ b/addons/mail/static/src/models/message_list_view_message_view_item.js @@ -13,7 +13,6 @@ registerModel({ identifyingFields: ['messageListViewOwner', 'message'], fields: { isSquashed: attr({ - readonly: true, required: true, }), message: one('Message', {