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