[IMP] mail: remove qunitTest field from message model

Since createMessageComponent helper is gone, the qunitTest field
of the message model is unused. Let's remove it.

closes odoo/odoo#94676

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
tsm-odoo
2022-06-27 15:11:30 +02:00
parent 9ae6d7e249
commit 59ef00c2e9
2 changed files with 0 additions and 21 deletions
@@ -1,17 +0,0 @@
/** @odoo-module **/
import { addFields, patchIdentifyingFields } from '@mail/model/model_core';
import { one } from '@mail/model/model_field';
// ensure that the model definition is loaded before the patch
import '@mail/models/message_view';
addFields('MessageView', {
qunitTest: one('QUnitTest', {
inverse: 'messageView',
readonly: true,
}),
});
patchIdentifyingFields('MessageView', identifyingFields => {
identifyingFields[0].push('qunitTest');
});
@@ -22,10 +22,6 @@ registerModel({
inverse: 'qunitTest',
isCausal: true,
}),
messageView: one('MessageView', {
inverse: 'qunitTest',
isCausal: true,
}),
notificationListView: one('NotificationListView', {
inverse: 'qunitTestOwner',
isCausal: true,