[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) <wil@odoo.com>
This commit is contained in:
Sébastien Theys
2022-07-06 20:18:23 +02:00
parent d54c6a7c12
commit 87c7c82286
@@ -13,7 +13,6 @@ registerModel({
identifyingFields: ['messageListViewOwner', 'message'],
fields: {
isSquashed: attr({
readonly: true,
required: true,
}),
message: one('Message', {