This PR changes the way notification are displayed inside the a channel. Currently, notification look exactly the same as a message send by the user. task-2918956 closes odoo/odoo#98262 Related: odoo/enterprise#30732 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
20 lines
538 B
JavaScript
20 lines
538 B
JavaScript
/** @odoo-module **/
|
|
|
|
import { registerModel } from '@mail/model/model_core';
|
|
import { one } from '@mail/model/model_field';
|
|
|
|
registerModel({
|
|
name: 'NotificationMessageView',
|
|
fields: {
|
|
message: one('Message', {
|
|
related: 'messageListViewItemOwner.message',
|
|
inverse: 'notificationMessageViews',
|
|
required: true,
|
|
}),
|
|
messageListViewItemOwner: one('MessageListViewItem', {
|
|
identifying: true,
|
|
inverse: 'notificationMessageView',
|
|
}),
|
|
},
|
|
});
|